Skip to content

Components: Use solid brand highlights for popup items (24.3 backport) - #85849

Merged
ciampo merged 1 commit into
release/24.3from
codex/backport-84583-release-24.3
Oct 28, 2026
Merged

ciampo merged 1 commit into
release/24.3from
codex/backport-84583-release-24.3

Conversation

@ciampo

@ciampo ciampo commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Backports #84583 to release/24.3, as requested by Mamaduka. Companion to the WordPress 7.2 backport in #85848.

What?

Use solid brand highlights for active popup items, with readable text and icons and consistent pointer and keyboard states.

Why?

Bring the merged popup styling changes to Gutenberg 24.3.

How?

Cherry-pick 5c21fdfad49abdb23c567a5c2aa18beadf264465, resolving the block-editor, components, and editor changelog conflicts by adding only this PR's entries and their category headings. All source additions and deletions match the original commit, with the block-styles change applied to this branch's menu-items.jsx.

Testing Instructions

  1. In Storybook, check MenuItem With Info, Menu With Submenu, and FormTokenField Default. Hover items and check that active text and icons remain readable. An open submenu parent should become neutral when focus enters its submenu.
  2. In CustomSelectControl With Custom Colors, hover Aquamarine and Rose. Active options should use brand colors and restore their custom colors when inactive. Bold and italic styling should remain.
  3. In the post editor, check slash completion, block transforms, user mentions, and image-link suggestions. Move the pointer over a result, then use arrow keys while the pointer stays still. Only the active item should have a brand fill, and input-based controls should retain input focus.
  4. Repeat with light, dark, and custom themes.

Testing Instructions for Keyboard

  1. Open DropdownMenu with the keyboard, navigate with arrow keys, select with Enter, and dismiss with Escape. Focus should return to the trigger.
  2. Navigate input-based suggestions with arrow keys and select with Enter. Only the active option should have a brand fill.
  3. Focus a disabled Menu item. It should have a visible ring and remain unavailable for selection. Repeat with forced colors enabled.
Local verification

The production build, components, block-editor and Storybook typechecks, JS/CSS lint, changelog validation, and published-dependency checks passed on this release branch. All 553 focused unit and Chromium browser tests passed across 24 files. The source files are identical to the WordPress 7.2 backport. The editor steps above remain manual verification instructions.

Screenshots or screencast

See the screenshots in #84583.

Use of AI Tools

Codex applied the backport, resolved the changelog conflict, compared the diff with the original commit, ran local checks, and drafted this description.

* Components: Use neutral highlights and focus rings for popup items

* Autocomplete: Fix focus rings and user mention contrast

* FormTokenField: Hide suggestion focus rings after blur

* Components: Align popup colors with WPDS tokens

* Components: Keep popup color priority within item styles

* Refine popup item corners and DropdownMenu focus

* Components: Separate popup styling from menu focus changes

* Keep popup brand fills on the keyboard target

* Components: Preserve final popup styles after rebase

* CustomSelectControl: Align option styling documentation

* Popup items: Keep highlights on the active item

* LinkPicker: Mock scrolling in suggestion tests

* Components: Keep inactive popup item colors neutral

---

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
(cherry picked from commit 5c21fdf)
@github-actions github-actions Bot added [Package] Components /packages/components [Package] Editor /packages/editor [Package] Block editor /packages/block-editor labels Oct 28, 2026
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: 0 B

Total Size: 9.04 MB

ead894b Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Regression: updating a specific option will only change its value and will not corrupt others in /test/e2e/specs/editor/various/core-settings.spec.js, passed after 1 failed attempt.
Error: expect(received).toStrictEqual(expected) // deep equality

- Expected  - 1
+ Received  + 1

  Array [
    "rewrite_rules",
-   "SERIALIZED DATA",
+   "",
  ]
    at forEach (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/core-settings.spec.js:46:26)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/core-settings.spec.js:43:35
drags a multi-selection from anywhere inside it in /test/e2e/specs/editor/various/draggable-blocks.spec.js, passed after 1 failed attempt.
TypeError: Cannot read properties of null (reading 'y')
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:824:57
    at dragSelectionBelowLanding (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:823:3)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:844:3
keeps the blocks selected after dropping a multi-selection in /test/e2e/specs/editor/various/draggable-blocks.spec.js, passed after 1 failed attempt.
TypeError: Cannot read properties of null (reading 'y')
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:824:57
    at dragSelectionBelowLanding (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:823:3)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:908:3
should not merge paragraphs if the selection is not collapsed in /test/e2e/specs/editor/various/splitting-merging.spec.js, passed after 1 failed attempt.
Error: apiRequestContext.fetch: socket hang up
Call log:
  - → GET http://localhost:8889/wp-json/wp/v2/posts?per_page=100&status=publish%2Cfuture%2Cdraft%2Cpending%2Cprivate%2Ctrash
    - user-agent: Playwright/1.63.0 (x64; ubuntu 24.04) node/24.20 CI/1
    - accept: */*
    - accept-encoding: gzip,deflate,br
    - X-WP-Nonce: 17430c8c2c
    - cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1793368589%7CVq351zbjeAO0Bylg4eBikObuOIfplcyr0Itcx4kjykz%7Cd109da95d5d3342148049a7d8d083a92bb70315c8078864e6c9bb12ff4a5bf1b; wp-settings-time-1=1793195790

    at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:112:39)
    at RequestUtils.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:30:27)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:12:22

ead894b Run

@ciampo
ciampo marked this pull request as ready for review October 28, 2026 13:50
@ciampo
ciampo requested review from a team, ellatrix and getdave as code owners October 28, 2026 13:50
@ciampo
ciampo requested a review from Mamaduka October 28, 2026 13:50
@ciampo ciampo added the [Type] Bug An existing feature does not function as intended label Oct 28, 2026
@ciampo ciampo self-assigned this Oct 28, 2026

@Mamaduka Mamaduka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ciampo!

@ciampo
ciampo merged commit 9437645 into release/24.3 Oct 28, 2026
65 of 68 checks passed
@ciampo
ciampo deleted the codex/backport-84583-release-24.3 branch October 28, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor [Package] Components /packages/components [Package] Editor /packages/editor [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants