Skip to content

Components: Use solid brand highlights for popup items (7.2 backport) - #85848

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

ciampo merged 1 commit into
wp/7.2from
codex/backport-84583-wp-7.2

Conversation

@ciampo

@ciampo ciampo commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Backports #84583 to wp/7.2 after the automatic cherry-pick failed.

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 WordPress 7.2.

How?

Cherry-pick 5c21fdfad49abdb23c567a5c2aa18beadf264465, resolving the block-editor changelog conflict by adding only this PR's entries. All 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. All 553 focused unit and Chromium browser tests passed across 24 files. 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 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: +2.45 kB (+0.03%)

Total Size: 9.04 MB

📦 View Changed
Filename Size Change
build/scripts/block-editor/index.min.js 604 kB +46 B (+0.01%)
build/scripts/components/index.min.js 371 kB +241 B (+0.07%)
build/styles/block-editor/style-rtl.css 20.7 kB +123 B (+0.6%)
build/styles/block-editor/style-rtl.min.css 17.6 kB +117 B (+0.67%)
build/styles/block-editor/style.css 20.7 kB +125 B (+0.61%)
build/styles/block-editor/style.min.css 17.6 kB +117 B (+0.67%)
build/styles/components/style-rtl.css 17.3 kB +564 B (+3.36%)
build/styles/components/style-rtl.min.css 14.5 kB +253 B (+1.78%)
build/styles/components/style.css 17.4 kB +567 B (+3.37%)
build/styles/components/style.min.css 14.5 kB +258 B (+1.81%)
build/styles/editor/style-rtl.css 31.4 kB +23 B (+0.07%)
build/styles/editor/style-rtl.min.css 26.8 kB +4 B (+0.01%)
build/styles/editor/style.css 31.5 kB +12 B (+0.04%)
build/styles/editor/style.min.css 26.8 kB +4 B (+0.01%)

fa9165e Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 2d5f001 wp/7.2 % Change
timeToFirstByte 39.6 ms +5.3% -3.91% 39.8 ms +12.69% -3.64% -0.5%
largestContentfulPaint 66 ms +9.09% -3.03% 68 ms +5.88% -5.88% -2.94%
lcpMinusTtfb 26.25 ms +21.33% -1.52% 26.9 ms +15.43% -5.39% -2.42%
wpBeforeTemplate 20.47 ms +7.08% -4.45% 20.8 ms +5.48% -5.43% -1.59%
wpTemplate 15.67 ms +4.47% -2.74% 15.95 ms +4.26% -7.65% -1.76%
wpTotal 36.47 ms +5.51% -4.09% 36.87 ms +10.88% -4.34% -1.08%
wpMemoryUsage 7.69 MB +0% -0% 7.66 MB +0% -0% 0.42%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 2d5f001 wp/7.2 % Change
timeToFirstByte 32.95 ms +4.86% -2.12% 29.45 ms +3.57% -3.57% 11.88%
largestContentfulPaint 72 ms +5.56% -0% 64 ms +3.13% -0% 12.5%
lcpMinusTtfb 39.7 ms +2.64% -1.64% 35.25 ms +1.56% -2.7% 12.62%
wpBeforeTemplate 17.72 ms +9.26% -2.03% 17.43 ms +6.71% -2.12% 1.66%
wpTemplate 12.21 ms +5.81% -2.38% 8.91 ms +2.81% -1.8% 37.04%
wpTotal 30.19 ms +5.03% -2.45% 26.45 ms +6.24% -1.78% 14.14%
wpMemoryUsage 6.38 MB +0% -0% 6.24 MB +0% -0% 2.31%
wpDbQueries 13 +0% -0% 9 +0% -0% 44.44%

media-processing

Metric 2d5f001 wp/7.2 % Change
mediaProcessingJpeg 290.24 ms +2.7% -0.7% 287.74 ms +0.44% -0.22% 0.87%
mediaProcessingAvif 4285.23 ms +1.01% -1.29% 4318.62 ms +1.68% -2.79% -0.77%
mediaProcessingJpegToAvif 2867.82 ms +4.96% -1.25% 2964.12 ms +1.29% -4.37% -3.25%

media-upload

Metric 2d5f001 wp/7.2 % Change
jpegUploadProcessing 1427.18 ms +0.7% -1.17% 1408.43 ms +0.37% -0.34% 1.33%
pngUploadProcessing 187.16 ms +9.38% -3.95% 194.48 ms +5.41% -5.23% -3.76%
largeJpegUploadProcessing 1405.31 ms +0.27% -0.38% 1396.99 ms +0.86% -0.27% 0.6%
multipleImageUploadProcessing 1503.11 ms +0.43% -1.06% 1492.98 ms +1.11% -0.4% 0.68%

post-editor

Metric 2d5f001 wp/7.2 % Change
serverResponse 448.5 ms +1.9% -9.35% 467.91 ms +0.64% -5.15% -4.15%
firstPaint 524.21 ms +8.83% -59.33% 280.99 ms +28.18% -13.69% 86.56%
domContentLoaded 1227.22 ms +3.81% -0.74% 1230.63 ms +1.52% -3.69% -0.28%
loaded 1228.49 ms +3.8% -0.75% 1231.98 ms +1.53% -3.65% -0.28%
firstContentfulPaint 548.45 ms +4.02% -4.59% 536.14 ms +0.66% -5% 2.3%
firstBlock 3758.57 ms +3.61% -2.59% 3805.79 ms +1.23% -2.49% -1.24%
type 20.4 ms +1.81% -5.34% 19.13 ms +3.45% -0.78% 6.64%
typeWithoutInspector 18.93 ms +1.74% -2.48% 19.93 ms +3.36% -3.76% -5.02%
typeWithTopToolbar 26.15 ms +1.91% -0.76% 25.96 ms +5.35% -1.39% 0.73%
typeContainer 9.01 ms +9.99% -6.44% 9.41 ms +4.36% -8.5% -4.25%
focus 126.3 ms +3.3% -2.76% 129.34 ms +8.09% -2.49% -2.35%
firstFocus 242.9 ms +0% -0% 247.17 ms +0% -0% -1.73%
selectAll 566.47 ms +0.51% -0.56% 605.67 ms +0.27% -1.41% -6.47%
listViewOpen 82.82 ms +5.95% -1.84% 81.36 ms +2.62% -9.94% 1.79%
inserterOpen 44.01 ms +2.93% -3.45% 44.17 ms +11.3% -5.93% -0.36%
inserterHover 13.14 ms +6.85% -5.02% 13.69 ms +16.95% -8.47% -4.02%
inserterSearch 8.37 ms +3.35% -2.75% 8.43 ms +10.91% -2.25% -0.71%
loadPatterns 694.44 ms +2.5% -3.98% 707.7 ms +45.76% -4.38% -1.87%
wpTotal 436.84 ms +2.04% -9.65% 455.44 ms +0.79% -5.08% -4.08%
wpMemoryUsage 14.74 MB +0% -0% 14.71 MB +0% -0% 0.23%
wpDbQueries 55 +0% -1.82% 55 +0% -1.82% 0%

site-editor

Metric 2d5f001 wp/7.2 % Change
serverResponse 533.11 ms +2.41% -3.98% 547.78 ms +1.76% -2.19% -2.68%
firstPaint 262.16 ms +17.69% -9.73% 256.09 ms +15% -11.92% 2.37%
domContentLoaded 1336.44 ms +3.01% -1.92% 1272.47 ms +1.81% -0.9% 5.03%
loaded 1337.58 ms +2.99% -1.92% 1273.9 ms +1.79% -0.94% 5%
firstContentfulPaint 550.47 ms +5.91% -4.16% 507.91 ms +5.88% -3.76% 8.38%
firstBlock 5150.73 ms +0.37% -2.05% 4945.66 ms +1.13% -0.34% 4.15%
type 19.98 ms +6.71% -5.41% 19.01 ms +3.52% -1.79% 5.1%
navigate 130.5 ms +14.83% -4.02% 112.17 ms +18.17% -1.11% 16.34%
loadPatterns 1320.19 ms +2.12% -3.52% 1290.58 ms +4.48% -4.51% 2.29%
loadPages 1057.59 ms +2.17% -1.76% 1030.7 ms +2.05% -1.64% 2.61%
wpTotal 523.33 ms +2.38% -4.01% 537.77 ms +1.5% -2.65% -2.69%
wpMemoryUsage 12.76 MB +0% -0% 12.73 MB +0% -0% 0.24%
wpDbQueries 44 +2.27% -0% 44 +2.27% -0% 0%

fa9165e Run

@github-actions github-actions Bot added [Package] Components /packages/components [Package] Editor /packages/editor [Package] Block editor /packages/block-editor labels Oct 28, 2026
@ciampo ciampo self-assigned this Oct 28, 2026
@ciampo
ciampo marked this pull request as ready for review October 28, 2026 13:45
@ciampo
ciampo requested review from a team, ellatrix and getdave as code owners October 28, 2026 13:45
@ciampo
ciampo requested review from Mamaduka and removed request for a team, ellatrix and getdave October 28, 2026 13:45
@ciampo ciampo added the [Type] Bug An existing feature does not function as intended label Oct 28, 2026
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