[wp-trac] [WordPress Trac] #64598: Block Supports: Define CSS vars for blocks based on feature selectors
WordPress Trac
noreply at wordpress.org
Thu Feb 5 05:20:13 UTC 2026
#64598: Block Supports: Define CSS vars for blocks based on feature selectors
-----------------------------+-----------------------------
Reporter: aaronrobertshaw | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0
Component: Editor | Version: trunk
Severity: normal | Keywords: gutenberg-merge
Focuses: |
-----------------------------+-----------------------------
This ticket tracks the backport of PHP files for the following Gutenberg
update:
https://github.com/WordPress/gutenberg/pull/75226
These updates add support for generating preset CSS custom properties
(vars) on feature-specific selectors rather than only a block's root
selector.
Some blocks define their root selector as an inner element (e.g. the
Button block uses `.wp-block-button .wp-block-button__link`). Preset CSS
vars (like dimension sizes) need to be applied on the outer block wrapper
instead. This change enables that by allowing blocks to define feature-
level selectors that are used when outputting preset CSS variables.
This is required for the Button block's adoption of width block support.
See https://github.com/WordPress/gutenberg/pull/74242 for further context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64598>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list