Skip to content

Commit

Permalink
Home Link: Add typography support (#43307)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Aug 26, 2022
1 parent ca63ca0 commit fc372b5
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 @@ -293,7 +293,7 @@ Create a link that always points to the homepage of the site. Usually not necess

- **Name:** core/home-link
- **Category:** design
- **Supports:** ~~html~~, ~~reusable~~
- **Supports:** typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** label

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

0 comments on commit fc372b5

Please sign in to comment.