Repository navigation
Add custom states into the states UI and allow multipl selection - #77271
Draft
MaggieCabrera wants to merge 31 commits into
Draft
MaggieCabrera wants to merge 31 commits into
MaggieCabrera wants to merge 31 commits into
Conversation
Replace the $found flag and double WP_HTML_Tag_Processor instantiation with a single processor using if/elseif branching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…layout.php and position.php
|
Size Change: +1.71 kB (+0.02%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in 8662056. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24351882647
|
MaggieCabrera
force-pushed
the
try-state-support
branch
from
April 14, 2026 15:42
b6a270d to
cc5ee1b
Compare
tellthemachines
force-pushed
the
try-state-support
branch
from
May 6, 2026 01:46
cc5ee1b to
cf52375
Compare
talldan
force-pushed
the
try-state-support
branch
2 times, most recently
from
May 14, 2026 03:55
11bb2be to
9f4e1fe
Compare
This branch has not been deployed
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.
WIP
Built with #76491 as a base to test implementing current + pseudo states on the nav link block. In the specific case of the nav link block up until know we have styled hover (and others) using the link element, not directly on the block. For the purposes of testing, I have changed that on this pr, since we don't have other blocks we can test @current on yet. This PR could be changed to affect the tabs or accordion blocks instead /cc @mikachan
AI summary:
UI (state selection dropdown — multi-select with compound support):
selections
Block instance styling (single block inspector):
resets
generation skips @current (requires runtime context)
Global Styles UI:
Block declaration:
PHP (frontend CSS):
style['@current'][':hover']; generates .wp-states-X.current-menu-item { ... } and .wp-states-X.current-menu-item:hover { ... }.
Inline <style> tags→ now uses the style engine store (context: block-supports, matching layout.php/position.php) fordeduplication and consolidated output. !important scoped to only the 6 CSS properties that have preset utility class conflicts.