Skip to content

Commit

Permalink
Categories Block: Add typography support (#43254)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Aug 16, 2022
1 parent 34d5e3c commit b5dcc59
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
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Display a list of all categories. ([Source](https://github.com/WordPress/gutenbe

- **Name:** core/categories
- **Category:** widgets
- **Supports:** align, ~~html~~
- **Supports:** align, typography (fontSize, lineHeight), ~~html~~
- **Attributes:** displayAsDropdown, showEmpty, showHierarchy, showOnlyTopLevel, showPostCounts

## Code
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/categories/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@
},
"supports": {
"align": true,
"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-categories-editor",
"style": "wp-block-categories"
Expand Down

0 comments on commit b5dcc59

Please sign in to comment.