Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag Cloud: Add color block support #63592

Open
wants to merge 13 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ A cloud of popular keywords, each sized by how often it appears. ([Source](https

- **Name:** core/tag-cloud
- **Category:** widgets
- **Supports:** align, interactivity (clientNavigation), spacing (margin, padding), typography (lineHeight), ~~html~~
- **Supports:** align, color (background, gradients, link, ~~text~~), interactivity (clientNavigation), spacing (margin, padding), typography (lineHeight), ~~html~~
- **Attributes:** largestFontSize, numberOfTags, showTagCounts, smallestFontSize, taxonomy

## Template Part
Expand Down
6 changes: 6 additions & 0 deletions packages/block-library/src/tag-cloud/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"supports": {
"html": false,
"align": true,
"color": {
"background": true,
aaronrobertshaw marked this conversation as resolved.
Show resolved Hide resolved
"text": false,
"gradients": true,
"link": true
},
"spacing": {
"margin": true,
"padding": true
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/tag-cloud/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function TagCloudEdit( { attributes, setAttributes } ) {
style: {
...attributes?.style,
border: undefined,
color: undefined,
},
};

Expand Down Expand Up @@ -195,7 +196,6 @@ function TagCloudEdit( { attributes, setAttributes } ) {
<div { ...useBlockProps() }>
<Disabled>
<ServerSideRender
skipBlockSupportAttributes
block="core/tag-cloud"
attributes={ serverSideAttributes }
/>
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/tag-cloud/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
padding: 0;
border: none;
border-radius: inherit;
background: inherit;
}
Loading