Skip to content

Tooltip, Snackbar: Follow the theme instead of staying dark - #87863

Merged
ciampo merged 8 commits into
trunkfrom
t3/implement-option-c
Dec 3, 2026
Merged

ciampo merged 8 commits into
trunkfrom
t3/implement-option-c

Conversation

@ciampo

@ciampo ciampo commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What?

Closes #87834

Implements option C: tooltips, snackbars, and the other overlays that were dark in every theme now follow the theme, like popovers.

Why?

On a dark canvas or a dark admin area, the always-dark overlays blended into the page, and keeping them dark took workarounds (#87817, #87818). #87834 settled on option C.

How?

Each overlay now uses the popover tokens: --wpds-color-background-surface-neutral-strong, --wpds-color-foreground-content-neutral, a --wpds-color-stroke-surface-neutral stroke, and --wpds-shadow-outer-sm. This covers Tooltip in both packages, Snackbar, the RangeControl and ResizableBox tooltips, the block drag chip, and the canvas stop hint.

Note

The stroke matches what popovers use today. The edge treatment for all raised surfaces, a stroke or something else, is being discussed separately in #87843. If the treatment changes there, these overlays should change with popovers.

Overlays follow the theme of the editor UI, not the site's colors, so on a dark site they stay light. In the site editor, they are light over the dark sidebar too, like menus and popovers.

Details

Testing Instructions

  1. Activate Twenty Twenty-Five. Open a post.
  2. Hover a header toolbar button, save the post, and drag a block by its drag handle. The tooltip, the "Post updated." snackbar, and the drag chip are light, with a stroke.
  3. In Appearance → Editor → Styles, pick the Evening variation (dark). Repeat step 2. The overlays stay light over the dark canvas.
More cases
  1. Click in a paragraph and press Escape. The "Press Enter to edit the document" hint is light, with a stroke.
  2. Add a Tag Cloud block and focus the Number of tags slider. Add a Spacer block and resize it. The value and size tooltips are light, with a stroke.
  3. At a phone width, open Appearance → Editor → Navigation, open a menu, and rename it from its ⋮ menu. The snackbar is light, like the ⋮ menu.
  4. In Users → Profile, pick another admin color scheme, for example Coffee or Light, and repeat the steps above.
  5. Turn on forced colors, for example with Emulate CSS media feature forced-colors in Chrome DevTools. Drag a block where it can't be dropped. The drag chip shows its edge and the "cannot drop here" symbol. A snackbar has an edge.

Testing Instructions for Keyboard

Press Tab through the post editor header toolbar, press Escape in a paragraph, and save with Cmd/Ctrl + S. Each tooltip, the canvas stop hint, and the snackbar are readable.

Screenshots or screencast

Post editor with the default admin color scheme and Twenty Twenty-Five:

Before After
Before: dark header toolbar tooltip After: light header toolbar tooltip with a stroke
Before: dark "Post updated." snackbar After: light "Post updated." snackbar with a stroke

More cases, by admin color scheme (admin areas) and theme (canvas):

Default admin color scheme, Twenty Twenty-Five (light site)
Before After
Before: dark tooltip over the settings sidebar After: light tooltip with a stroke over the settings sidebar
Before: dark block drag chip After: light block drag chip with a stroke
Before: black canvas stop hint After: light canvas stop hint with a stroke
Before: dark tooltip on the dark site editor sidebar After: light tooltip on the dark site editor sidebar
Before: dark snackbar over a light template in the site editor After: light snackbar over a light template in the site editor
Before: translucent black snackbar over the dark mobile site editor sidebar After: light snackbar with a stroke over the dark mobile site editor sidebar
Default admin color scheme, Twenty Twenty-Five with the Evening variation (dark site)
Before After
Before: dark header toolbar tooltip After: light header toolbar tooltip
Before: the dark snackbar blends into the dark canvas After: the light snackbar stands out from the dark canvas
Before: the drag chip blends into the dark canvas After: the light drag chip stands out from the dark canvas
Before: black canvas stop hint on the dark canvas After: light canvas stop hint on the dark canvas
Before: dark snackbar over a dark template in the site editor After: light snackbar over a dark template in the site editor
Midnight admin color scheme, Twenty Twenty-Four with the Onyx variation (dark site)
Before After
Before: dark header toolbar tooltip After: light header toolbar tooltip
Before: dark "Post updated." snackbar over the dark canvas After: light "Post updated." snackbar with a Midnight link color over the dark canvas
Before: the drag chip blends into the dark canvas After: the light drag chip stands out from the dark canvas
Before: black canvas stop hint on the dark canvas After: light canvas stop hint on the dark canvas
Before: dark tooltip on the Midnight site editor sidebar After: light tooltip on the Midnight site editor sidebar
Before: dark snackbar over the home template in the site editor After: light snackbar over the home template in the site editor
Before: translucent black snackbar over the Midnight mobile sidebar After: light snackbar with a stroke over the Midnight mobile sidebar
Coffee admin color scheme, Twenty Twenty-Five (light site)
Before After
Before: dark header toolbar tooltip After: light header toolbar tooltip
Before: dark "Post updated." snackbar After: light "Post updated." snackbar with a Coffee link color
Before: dark tooltip on the Coffee site editor sidebar After: light tooltip on the Coffee site editor sidebar
Before: black snackbar over the Coffee mobile sidebar After: light snackbar with a stroke over the Coffee mobile sidebar
Light admin color scheme, Twenty Twenty-Five (light site)
Before After
Before: dark tooltip on the light site editor sidebar After: light tooltip with a stroke on the light site editor sidebar
Before: dark snackbar over the light mobile sidebar After: light snackbar with a stroke over the light mobile sidebar
DataViews: Pages in the site editor and the extensible site editor, default and Coffee admin color schemes
Before After
Before: dark "View options" tooltip in the site editor After: light "View options" tooltip in the site editor
Before: dark trash snackbar in the site editor After: light trash snackbar in the site editor
Before: dark "View options" tooltip in the extensible site editor After: light "View options" tooltip in the extensible site editor
Before: dark trash snackbar in the extensible site editor After: light trash snackbar in the extensible site editor
Before: dark "View options" tooltip in the site editor, Coffee After: light "View options" tooltip in the site editor, Coffee
Before: dark trash snackbar in the site editor, Coffee After: light trash snackbar in the site editor, Coffee
Before: dark "View options" tooltip in the extensible site editor, Coffee After: light "View options" tooltip in the extensible site editor, Coffee
Before: dark trash snackbar in the extensible site editor, Coffee After: light trash snackbar in the extensible site editor, Coffee
RangeControl and ResizableBox tooltips, Twenty Twenty-Five and its Evening variation
Before After
Before: dark "Number of tags" value tooltip After: light "Number of tags" value tooltip with a stroke
Before: dark Spacer size tooltip After: light Spacer size tooltip with a stroke
Before: dark Spacer size tooltip over the dark canvas After: light Spacer size tooltip over the dark canvas
Forced-colors mode (Chromium emulation)
Before After
Before: the drag chip over an invalid drop target is blank, with no edge or symbol After: the drag chip over an invalid drop target has an edge and the "cannot drop here" symbol
Before: the snackbar has no edge After: the snackbar has an edge in the system text color
Before: the header toolbar tooltip has no edge After: the header toolbar tooltip has an edge in the system text color
How the screenshots were taken

A Playwright script captured both builds on the same wp-env site at 1440 × 900 (390 × 760 for the mobile shots), 2× scale. Before is trunk at 6482bdf. After is this branch. The post editor "Post updated." snackbar comes from a real save. The other snackbars use their real messages, dispatched with wp.data.dispatch( 'core/notices' ).createSuccessNotice().

Follow-ups

Use of AI Tools

Claude Code (Claude Opus 5.5) wrote the code changes, captured the screenshots, and drafted this description.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 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: mirka <0mirka00@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>

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


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

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

📦 Bundle size

Size Change: +622 B (+0.01%)

Total Size: 8.86 MB

📦 View Changed
Filename Size Change
build/modules/boot/index.min.js 54.8 kB -1 B (0%)
build/modules/core-fields/attachment.min.js 43.9 kB +12 B (+0.03%)
build/modules/core-fields/wp_block.min.js 32.6 kB +2 B (+0.01%)
build/modules/core-fields/wp_template_part.min.js 39.2 kB +3 B (+0.01%)
build/scripts/block-directory/index.min.js 42.3 kB +1 B (0%)
build/scripts/block-editor/index.min.js 563 kB -29 B (-0.01%)
build/scripts/block-library/index.min.js 434 kB +598 B (+0.14%)
build/scripts/components/index.min.js 358 kB +89 B (+0.02%)
build/scripts/edit-site/index.min.js 377 kB -38 B (-0.01%)
build/scripts/editor/index.min.js 579 kB -23 B (0%)
build/scripts/media-utils/index.min.js 235 kB -62 B (-0.03%)
build/scripts/notices/index.min.js 47.6 kB +7 B (+0.01%)
build/styles/block-editor/style-rtl.css 20.8 kB +72 B (+0.35%)
build/styles/block-editor/style-rtl.min.css 17.7 kB +56 B (+0.32%)
build/styles/block-editor/style.css 20.8 kB +69 B (+0.33%)
build/styles/block-editor/style.min.css 17.6 kB +52 B (+0.3%)
build/styles/components/style-rtl.css 18.7 kB -46 B (-0.25%)
build/styles/components/style-rtl.min.css 15.8 kB -42 B (-0.27%)
build/styles/components/style.css 18.7 kB -42 B (-0.22%)
build/styles/components/style.min.css 15.8 kB -42 B (-0.27%)
build/styles/editor/style-rtl.css 32.8 kB -4 B (-0.01%)
build/styles/editor/style-rtl.min.css 28.4 kB -3 B (-0.01%)
build/styles/editor/style.css 32.9 kB -4 B (-0.01%)
build/styles/editor/style.min.css 28.4 kB -3 B (-0.01%)

6d7b5bf Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 663bbc6 trunk % Change
timeToFirstByte 58.7 ms +4.51% -3.58% 58.85 ms +4.25% -2.55% -0.25%
largestContentfulPaint 96 ms +4.17% -8.33% 88 ms +4.55% -0% 9.09%
lcpMinusTtfb 35.1 ms +15.24% -17.38% 29.15 ms +3.26% -3.43% 20.41%
wpBeforeTemplate 30.73 ms +6.22% -3.48% 30.73 ms +5.56% -1.4% 0%
wpTemplate 23.53 ms +2.51% -4.42% 23.61 ms +2.88% -4.02% -0.34%
wpTotal 54.72 ms +4.93% -3.86% 54.84 ms +4.72% -2.84% -0.22%
wpMemoryUsage 7.76 MB +0% -0% 7.72 MB +0% -0% 0.45%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 663bbc6 trunk % Change
timeToFirstByte 49.7 ms +6.54% -3.22% 47.6 ms +6.62% -2.1% 4.41%
largestContentfulPaint 84 ms +4.76% -0% 84 ms +0% -4.76% 0%
lcpMinusTtfb 35.95 ms +2.23% -3.76% 34.35 ms +5.97% -2.47% 4.66%
wpBeforeTemplate 28.7 ms +10.73% -3.66% 27.66 ms +11.57% -2.31% 3.76%
wpTemplate 17.15 ms +4.2% -4.61% 16.73 ms +3.05% -4.24% 2.51%
wpTotal 46.26 ms +7.39% -3.61% 44.53 ms +6.92% -2.47% 3.89%
wpMemoryUsage 6.44 MB +0% -0% 6.41 MB +0% -0% 0.56%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 663bbc6 trunk % Change
mediaProcessingJpeg 400.68 ms +0.41% -0.55% 399.65 ms +2.42% -0.85% 0.26%
mediaProcessingAvif 6168.44 ms +0.19% -0.18% 6152.37 ms +0.2% -0.37% 0.26%
mediaProcessingJpegToAvif 4276.09 ms +0.3% -0.61% 4233.32 ms +0.09% -0.08% 1.01%

media-upload

Metric 663bbc6 trunk % Change
jpegUploadProcessing 1982.05 ms +1.43% -21.4% 1749.27 ms +12.93% -15.73% 13.31%
pngUploadProcessing 274.52 ms +3.45% -28.03% 272.78 ms +5.12% -7.76% 0.64%
largeJpegUploadProcessing 1506.48 ms +30.68% -1.1% 1514.35 ms +28.83% -1.03% -0.52%
multipleImageUploadProcessing 2114.86 ms +2.02% -0.48% 2100.67 ms +0.65% -0.52% 0.68%

post-editor

Metric 663bbc6 trunk % Change
serverResponse 479.54 ms +1.94% -7.77% 482.55 ms +2.72% -8.36% -0.62%
firstPaint 430.9 ms +7.47% -12.26% 392.77 ms +10.23% -7.11% 9.71%
domContentLoaded 810.38 ms +12.24% -0.69% 805.85 ms +1.82% -1.94% 0.56%
loaded 811.72 ms +12.24% -0.71% 807.09 ms +1.82% -1.91% 0.57%
firstContentfulPaint 455.88 ms +13.67% -2.39% 447.15 ms +2.24% -2.23% 1.95%
firstBlock 2223.36 ms +5.78% -2.3% 2203.9 ms +0.42% -0.4% 0.88%
type 15.91 ms +5.41% -5.28% 15.52 ms +12.89% -1.42% 2.51%
typeWithoutInspector 16.12 ms +5.15% -7.01% 16.11 ms +4.66% -2.67% 0.06%
typeWithTopToolbar 21.36 ms +8.38% -2.53% 21.56 ms +7.88% -3.9% -0.93%
typeContainer 8.32 ms +11.54% -7.21% 8.2 ms +22.2% -5.12% 1.46%
focus 101.11 ms +7.18% -1.55% 100.04 ms +12.26% -7.22% 1.07%
firstFocus 266.6 ms +0% -0% 260.6 ms +0% -0% 2.3%
selectAll 393.13 ms +2.81% -0.9% 386.99 ms +1.42% -4.52% 1.59%
undo 29.06 ms +7.3% -6.33% 28.4 ms +9.93% -4.86% 2.32%
listViewOpen 37.89 ms +4.65% -6.12% 37.95 ms +9.96% -6.51% -0.16%
inserterOpen 39.5 ms +12.08% -1.9% 38.16 ms +2.8% -9.22% 3.51%
inserterHover 10.95 ms +8.22% -12.88% 10.78 ms +15.03% -9% 1.58%
inserterSearch 7.67 ms +3.39% -3.39% 7.62 ms +5.77% -6.82% 0.66%
loadPatterns 624.96 ms +5.12% -4.71% 628.27 ms +9.19% -3.53% -0.53%
wpTotal 469.85 ms +1.94% -8.03% 472.91 ms +2.77% -8.53% -0.65%
wpMemoryUsage 14.80 MB +0% -0% 14.76 MB +0% -0% 0.25%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 663bbc6 trunk % Change
serverResponse 262.01 ms +3.57% -1.81% 266.86 ms +3.08% -9.2% -1.82%
firstPaint 312.78 ms +3.65% -7.87% 295.79 ms +8.26% -8.98% 5.74%
domContentLoaded 566.91 ms +8.75% -3.4% 562.77 ms +3.77% -0.14% 0.74%
loaded 567.83 ms +8.75% -3.39% 563.76 ms +3.77% -0.16% 0.72%
firstContentfulPaint 317.42 ms +11.75% -1.63% 320.3 ms +2.24% -0.16% -0.9%
firstBlock 1740.43 ms +2.4% -1.81% 1756.96 ms +2.07% -0.92% -0.94%
type 12.51 ms +11.11% -4.08% 13.07 ms +7.96% -5.59% -4.28%
navigate 80.42 ms +3.78% -5.81% 98.94 ms +5.2% -20.7% -18.72%
loadPatterns 1150.89 ms +4.45% -3.26% 1190.43 ms +7.64% -2.13% -3.32%
loadPages 922.09 ms +1.22% -0.84% 965.49 ms +2.1% -3.03% -4.5%
wpTotal 255.49 ms +3.61% -1.89% 260.19 ms +3.16% -9.41% -1.81%
wpMemoryUsage 12.84 MB +0% -0% 12.80 MB +0% -0% 0.28%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

6d7b5bf 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.

Navigates the items list via UP/DOWN arrow keys in /test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeFocused() failed

Locator:  getByLabel('Page Two')
Expected: focused
Received: inactive
Timeout:  5000ms

Call log:
  - Expect "toBeFocused" getByLabel('Page Two') with timeout 5000ms
  - waiting for getByLabel('Page Two')
    14 × locator resolved to <button type="button" tabindex="-1" aria-pressed="false" id="view-list-0-207-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-207-label" aria-describedby="view-list-0-207-description"></button>
       - unexpected value "inactive"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js:146:49

6d7b5bf Run

@github-actions github-actions Bot added [Package] Components /packages/components [Package] Editor /packages/editor [Package] Block editor /packages/block-editor [Package] UI /packages/ui labels Dec 2, 2026
@ciampo ciampo self-assigned this Dec 3, 2026
@github-actions github-actions Bot added the [Package] Edit Site /packages/edit-site label Dec 3, 2026
@ciampo
ciampo force-pushed the t3/implement-option-c branch from 21eb7c8 to 518f119 Compare December 3, 2026 09:02
@ciampo ciampo added [Type] Enhancement A suggestion for improvement. [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). labels Dec 3, 2026
@ciampo
ciampo marked this pull request as ready for review December 3, 2026 09:08
@ciampo
ciampo requested review from a team and ellatrix as code owners December 3, 2026 09:08
@ciampo
ciampo requested review from a team and a balanced review from Copilot December 3, 2026 09:09
@github-actions
github-actions Bot requested a review from aduth December 3, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the overlay theming changes.

No open issues 🎉

What changed in this PR

Implements option C from #87834: overlays follow the editor UI theme rather than staying dark, using surface colors, borders, and shadows consistent with popovers.

Changes:

  • Updates tooltips, snackbars, drag chips, and canvas hints to use theme tokens.
  • Simplifies snackbar theme inheritance and preserves the invalid-drop symbol in forced-colors mode.
  • Updates tooltip assertions and package changelogs.
File Description
packages/​ui/​src/​tooltip/​test/​index.browser.test.tsx Checks theme surface, text, and border colors.
packages/​ui/​src/​tooltip/​style.module.scss Applies themed tooltip colors and border.
packages/​ui/​CHANGELOG.md Documents tooltip appearance changes.
packages/​editor/​src/​components/​upload-progress-snackbar/​style.scss Removes the white-spinner override.
packages/​editor/​CHANGELOG.md Removes the obsolete spinner fix entry.
packages/​edit-site/​src/​components/​layout/​index.jsx Uses content colors for snackbars at all viewport sizes.
packages/​edit-site/​CHANGELOG.md Updates the snackbar change reference.
packages/​components/​src/​tooltip/​style.scss Applies themed tooltip colors and border.
packages/​components/​src/​snackbar/​style.scss Themes the snackbar and removes white action overrides.
packages/​components/​src/​resizable-box/​resize-tooltip/​style.module.scss Themes resize tooltips and adds shadow.
packages/​components/​src/​range-control/​style.module.scss Themes range value tooltips.
packages/​components/​CHANGELOG.md Documents overlay changes and removes obsolete entries.
packages/​block-editor/​src/​components/​writing-flow/​style.scss Themes the canvas stop hint.
packages/​block-editor/​src/​components/​block-draggable/​style.scss Themes drag chips and preserves forced-colors symbols.
packages/​block-editor/​CHANGELOG.md Documents overlay styling and forced-colors improvements.

Review effort: Balanced

@jameskoster

Copy link
Copy Markdown
Contributor

Perhaps it's separate but I would expect this tooltip to inherit the sidebar theme:

Screenshot 2026-12-03 at 10 21 52

I suppose this raises a wider question about the composition, because I'm unsure about the Snackbars. Should they inherit the sidebar theme or the parent theme? I think how they work on the PR is what I'd expect, so probably fine, but might be a detail to explore separately later.

@ciampo

ciampo commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor Author

but might be a detail to explore separately later.

Definitely something to discuss separately, in the same way that the border/stroke treatment should also be addressed holistically for overlays in #87843.

Just wanted to note that the "what theme should overlays inherit" argument was discussed relatively recently, and we settled on them inheriting the "root" theme, ie the light theme used in the canvas. We'd also need to understand if this would be an exception for tooltips, or a behaviour to consider for all overlays (including menus, selects, etc)

@mirka

mirka commented Dec 3, 2026

Copy link
Copy Markdown
Member

Perhaps it's separate but I would expect this tooltip to inherit the sidebar theme:

I believe we discovered earlier that there would be various problems if overlays inherited the closest theme provider (for example #81183), and after some discussion we settled on keeping the root theme for portaled overlays (#82038). So this is how overlays triggered from the sidebar work today (which the tooltips would match).

@mirka mirka 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.

I also tested around in a Playground, and I couldn't find any particular problems 👍

@ciampo
ciampo force-pushed the t3/implement-option-c branch from f54b535 to 2385a4d Compare December 3, 2026 11:15
@ciampo

ciampo commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Acknowledging that this is a noticeable visual change, I'll wait for @WordPress/gutenberg-design to also give their approval before merging.

@jasmussen

Copy link
Copy Markdown
Contributor

I'm ever sceptical, but I wouldn't want that to mean "let's not do this", I just mean let's try this and let's come back and iterate if something comes up.

@jameskoster jameskoster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it makes sense to align with the system without hacks our quirks as a principle, and this does that, so I'm happy to approve. If it turns out to be problematic we can revisit during the 7.3 cycle.

ciampo and others added 8 commits December 3, 2026 16:59
Implement option C from #87834. Tooltip (both packages), Snackbar, the
block drag chip, and the canvas stop hint now use the neutral surface,
text, and stroke tokens of the theme around them, like popovers, instead
of fixed dark colors or swapped tokens. Remove the patches that kept the
snackbar action text and upload spinner white.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rewrite the unreleased Tooltip entries for the final behavior, and remove the
unreleased Snackbar and upload spinner fixes that no longer apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Include the border in the chip's height so the chip stays centered on the
pointer, and drop a radius the invalid overlay could not inherit.
Snackbars over the mobile sidebar took the admin color scheme, so they
turned dark or tinted while tooltips and menus over the same sidebar stay
light. Seed them with the content colors everywhere, like the extensible
site editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oltips

The RangeControl value tooltip and the ResizableBox size tooltip were the
last dark tooltips. Give them the theme's surface, text, stroke, and
shadow, like Tooltip.

Also keep the drag chip's "cannot drop here" symbol in forced-colors
mode, which stripped the box-shadow and gradient that draw it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reference the design system tokens directly, like Tooltip and Popover,
instead of the legacy `--wp-components-color-*` variables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Forced-colors mode already draws the stroke in a system color, as it does for Popover.
The tests covered the swapped neutral tokens from #87817. The tooltip now uses the surface tokens like any other overlay, so they no longer test anything specific to it.
@ciampo
ciampo force-pushed the t3/implement-option-c branch from a0ab99f to 6d7b5bf Compare December 3, 2026 16:01
@ciampo
ciampo enabled auto-merge (squash) December 3, 2026 16:05
@ciampo
ciampo merged commit a20245f into trunk Dec 3, 2026
86 checks passed
@ciampo
ciampo deleted the t3/implement-option-c branch December 3, 2026 16:23
@github-actions github-actions Bot added this to the Gutenberg 24.7 milestone Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Package] Block editor /packages/block-editor [Package] Components /packages/components [Package] Edit Site /packages/edit-site [Package] Editor /packages/editor [Package] UI /packages/ui [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design System: Decide how Tooltip, Snackbar and other "perma dark" overlays should look like in dark themes

6 participants