Skip to content

Commit

Permalink
Latest Comments: Add typography support
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Aug 17, 2022
1 parent 2026f13 commit afca56b
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 @@ -320,7 +320,7 @@ Display a list of your most recent comments. ([Source](https://github.com/WordPr

- **Name:** core/latest-comments
- **Category:** widgets
- **Supports:** align, ~~html~~
- **Supports:** align, typography (fontSize, lineHeight), ~~html~~
- **Attributes:** commentsToShow, displayAvatar, displayDate, displayExcerpt

## Latest Posts
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/latest-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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-latest-comments-editor",
"style": "wp-block-latest-comments"
Expand Down

0 comments on commit afca56b

Please sign in to comment.