From 605ba9af766dcc5dee0cf9688617c58af7993771 Mon Sep 17 00:00:00 2001 From: Mustaque Ahmed Date: Wed, 5 Oct 2022 12:34:48 +0530 Subject: [PATCH] Tag Cloud: Add typography supports (except font size) (#43452) * tag-cloud: update docs to latest typography support * remove default control for tag-cloud block * remove `__experimentalTextDecoration` as typography support this is done because of the serialization issues with the typography support as mentioned in the comment. https://github.com/WordPress/gutenberg/pull/43452#pullrequestreview-1100081459 --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/tag-cloud/block.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 148988bbfcc3e8..e0d40a35d12167 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -797,7 +797,7 @@ A cloud of your most used tags. ([Source](https://github.com/WordPress/gutenberg - **Name:** core/tag-cloud - **Category:** widgets -- **Supports:** align, spacing (margin, padding), ~~html~~ +- **Supports:** align, spacing (margin, padding), typography (lineHeight), ~~html~~ - **Attributes:** largestFontSize, numberOfTags, showTagCounts, smallestFontSize, taxonomy ## Template Part diff --git a/packages/block-library/src/tag-cloud/block.json b/packages/block-library/src/tag-cloud/block.json index 69e14223f70fb7..c722227398603f 100644 --- a/packages/block-library/src/tag-cloud/block.json +++ b/packages/block-library/src/tag-cloud/block.json @@ -40,6 +40,14 @@ "spacing": { "margin": true, "padding": true + }, + "typography": { + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalLetterSpacing": true } }, "editorStyle": "wp-block-tag-cloud-editor"