Fix dark mode in Studio Code conversation dialogs - #3844
Merged
sejas merged 1 commit intoJun 16, 2026
Conversation
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.



Related Issues
How AI was used in this PR
Claude Code located the affected dialogs, traced the token cascade, and implemented the fix.
Proposed Changes
In dark mode the Studio Code dialogs — "Start a new conversation?" (shown when switching to a different model family) and "Site created" — appeared as a white box with dark, barely-readable text while the rest of Studio Code followed the dark scheme. They now match dark mode: dark surface, light text, and a correct border.
These dialogs come from
@wordpress/ui, which colors itself from--wpds-color-*design tokens.apps/studiohas no app-wide colorThemeProvider, so those tokens keep their light-only fallbacks, and the dialog popup portals out to<body>beyond Studio's frame styling — so it stayed light regardless of scheme. The fix remaps the few color tokens the dialog chrome reads onto Studio's existing dark-aware--color-frame-*tokens, mirroring the existingwp-ui-button-defensepattern.Testing Instructions
npm startPre-merge Checklist
apps/studio)studio-code-sessiontests pass