Repository navigation
Block Supports: Escape Global Styles and default pseudo-state text clips in state styles - #15433
Draft
aaronrobertshaw wants to merge 2 commits into
Draft
aaronrobertshaw wants to merge 2 commits into
aaronrobertshaw wants to merge 2 commits into
Conversation
…ips in state styles. A block's state or breakpoint styles now undo a text gradient set in Global Styles for its block type or block style variation. A breakpoint pseudo-state now also undoes a text gradient set by the default pseudo-state. Backports WordPress/gutenberg#86245.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of Gutenberg PR WordPress/gutenberg#86245
Trac ticket: https://core.trac.wordpress.org/ticket/66464
:hoverand breakpoint styles now undo a text gradient in two more cases. One is a Global Styles gradient under a single block's state styles. The other is a:hovergradient under a breakpoint:hoverintheme.json.This PR backports:
wp_get_block_state_global_base_style(),WP_Theme_JSON::get_state_base_styles()andprocess_pseudo_selectors(),WP_Theme_JSONtests.The editor side arrives later with the Gutenberg package update.
Overlap: This touches the same lines in
class-wp-theme-json.phpas #15366 and the backport of WordPress/gutenberg#86246. Each branches from trunk, so whichever merges second needs a small rebase.Testing instructions
theme.json::hoverrule refills the text:wp-states-*rule clears the gradient:On trunk, the button rule has no
-webkit-text-fill-color, so the text stays hidden. The paragraph rule has nobackground-image:unset, so the gradient fills the whole box at mobile width.Use of AI
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: The PHP port, tests and this description; I reviewed this