-
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
Block API: explore aligning block attributes, block supports, and theme.json shape #22887
Comments
The fun part is we often have entries in |
Updated the issue with an example of attributes & context from #25372 This use case highlights a limitation of the current hook system: that we're only able to attach styles to the block that declares support for them (ex: |
Just to reiterate my previous comment. It feels like those attributes could be auto-filled on the server when features like |
#28913 is related to this in that it addresses the use case of targeting inner elements. I've also updated a bit the issue description to make it current. |
A block declaration is made of a few things, including
attributes
,usesContext
, andsupports
.Take the following as a potential example:
See that the block:
align
need to be set on both attributes and supports.backgroundColor
andforegroundColor
). See example Social Links Block: Add icon and background color options #25372The text was updated successfully, but these errors were encountered: