Skip to content

Commit

Permalink
Tag Cloud: Add typography supports (except font size) (#43452)
Browse files Browse the repository at this point in the history
* 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.
#43452 (review)
  • Loading branch information
amustaque97 authored Oct 5, 2022
1 parent 4603eeb commit 605ba9a
Show file tree
Hide file tree
Showing 2 changed files with 9 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 @@ -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
Expand Down
8 changes: 8 additions & 0 deletions packages/block-library/src/tag-cloud/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 605ba9a

Please sign in to comment.