Skip to content

Commit

Permalink
Post Template: Add typography supports (#43342)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Aug 19, 2022
1 parent 05d7e8d commit 1a50b66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ Contains the block elements used to render a post, like the title, date, feature

- **Name:** core/post-template
- **Category:** theme
- **Supports:** align, ~~html~~, ~~reusable~~
- **Supports:** align, typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:**

## Post Terms
Expand Down
13 changes: 13 additions & 0 deletions packages/block-library/src/post-template/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@
"align": true,
"__experimentalLayout": {
"allowEditing": false
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"style": "wp-block-post-template",
Expand Down

0 comments on commit 1a50b66

Please sign in to comment.