-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Consolidate the style attributes of blocks #22700
Comments
Thanks for opening this! When you mark a block's style attribute ✔️in this issue, does that also mean that there's support for modifying those attributes via |
Yes, that's the idea. Although I've realized that, as of today, background (gradients) & background-color (solid) are missing from The good news is that I'm now working on #22698 which removes that manual list and pulls data directly from the blocks, which wasn't possible at the time, hence enabling backgrounds. I've clarified the issue description. |
#22722 added support for link color the following blocks: paragraph, heading, columns, group, and media/text. |
Padding for cover has landed in #21492 |
We've seen a lot of progress and the API was deemed stable for 5.6 (dev note upcoming), so I think we can close this tracking issue and open individual ones as we need them. |
Coming from a related issue, does this now allow to give pieces of text in a block (e.g. |
We're exploring a solution that allows a block to declare a set of style attributes it supports, which are usually referred to as the style attributes of the block. The Block Editor uses this data to auto-generate InspectorControls for them, as well as enabling their use in
experimental-theme.json
.A block would declare support for these style attributes via its
block.json
. See example from the paragraph block:which means that the paragraph block has support for color, line-height, and font-size.
This master issue keeps track of this work.
Colors
Typography
Spacing
The text was updated successfully, but these errors were encountered: