From 45e0fe2a9ab85cb4091260286eee06e773238427 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Thu, 18 Aug 2022 14:33:08 +1000 Subject: [PATCH] Comment Template: Adopt typography supports (#43266) --- docs/reference-guides/core-blocks.md | 2 +- .../block-library/src/comment-template/block.json | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index faef91da28ba3..d33f841475ca1 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -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 diff --git a/packages/block-library/src/comment-template/block.json b/packages/block-library/src/comment-template/block.json index 7596ed312ee14..1a8dd4da1ada3 100644 --- a/packages/block-library/src/comment-template/block.json +++ b/packages/block-library/src/comment-template/block.json @@ -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" }