Skip to content

Commit

Permalink
Navigation Link: Add typography support (#44005)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Sep 12, 2022
1 parent f849152 commit 99092c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Expand Up @@ -401,7 +401,7 @@ Add a page, link, or another item to your navigation. ([Source](https://github.c

- **Name:** core/navigation-link
- **Category:** design
- **Supports:** ~~html~~, ~~reusable~~
- **Supports:** typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** description, id, isTopLevelLink, kind, label, opensInNewTab, rel, title, type, url

## Submenu
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/navigation-link/block.json
Expand Up @@ -58,7 +58,20 @@
"supports": {
"reusable": false,
"html": false,
"__experimentalSlashInserter": true
"__experimentalSlashInserter": true,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-navigation-link-editor",
"style": "wp-block-navigation-link"
Expand Down

0 comments on commit 99092c4

Please sign in to comment.