Skip to content

Commit

Permalink
Comments: Add typography support (#43286)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Aug 19, 2022
1 parent 1a50b66 commit e4d81f9
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 @@ -176,7 +176,7 @@ An advanced block that allows displaying post comments using different visual co

- **Name:** core/comments
- **Category:** theme
- **Supports:** align (full, wide), color (background, gradients, link, text), ~~html~~
- **Supports:** align (full, wide), color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** legacy, tagName

## Comments Pagination
Expand Down
13 changes: 13 additions & 0 deletions packages/block-library/src/comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@
"text": true,
"link": true
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"editorStyle": "wp-block-comments-editor",
Expand Down

0 comments on commit e4d81f9

Please sign in to comment.