Skip to content

Commit

Permalink
Comment Template: Adopt typography supports (#43266)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Aug 18, 2022
1 parent 5317e61 commit 45e0fe2
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 @@ -167,7 +167,7 @@ Contains the block elements used to display a comment, like the title, date, aut

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

## Comments
Expand Down
15 changes: 14 additions & 1 deletion packages/block-library/src/comment-template/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@
"supports": {
"reusable": false,
"html": false,
"align": true
"align": true,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
}
},
"style": "wp-block-comment-template"
}

0 comments on commit 45e0fe2

Please sign in to comment.