Skip to content

Commit

Permalink
Post Content: Add typography supports
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Sep 5, 2022
1 parent c5e2734 commit 06141ee
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 @@ -518,7 +518,7 @@ Displays the contents of a post or page. ([Source](https://github.com/WordPress/

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

## Post Date
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/post-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@
"supports": {
"align": [ "wide", "full" ],
"html": false,
"__experimentalLayout": true
"__experimentalLayout": true,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-post-content-editor"
}

0 comments on commit 06141ee

Please sign in to comment.