Repository navigation
themes: improve 2026 editor placeholder contrast - #346707
Merged
Cherry Wang (chryw) merged 1 commit intoNov 7, 2026
Merged
Cherry Wang (chryw) merged 1 commit into
Cherry Wang (chryw) merged 1 commit into
Conversation
Keep elicitation placeholders readable without changing the existing semantic token or inline completion colors. Refs #338627 Co-authored-by: Copilot <[email protected]>
Ross Wollman (rwoll)
approved these changes
Nov 7, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The placeholder contrast update has no active review issues.
No open issues 🎉
What changed in this PR
Improves Monaco editor placeholder readability in Light 2026 and Dark 2026, addressing the elicitation answer-field contrast issue in #338627 without changing inline-completion colors or high-contrast themes.
Changes:
- Sets theme-specific placeholder colors to exceed 4.5:1 contrast while remaining quieter than entered text.
- Adds regression tests for placeholder contrast across five workbench surfaces.
| File | Description |
|---|---|
| src/vs/workbench/contrib/themes/test/node/defaultThemeColors.test.ts | Tests placeholder readability and contrast relative to entered text in both themes. |
| extensions/theme-defaults/themes/2026-light.json | Sets the editor placeholder foreground to #707070. |
| extensions/theme-defaults/themes/2026-dark.json | Sets the editor placeholder foreground to #8C8C8C. |
Review effort: Balanced
Cherry Wang (chryw)
deleted the
dev/cherwan/agents/fix-placeholder-contrast-issue-338627
branch
November 7, 2026 01:22
|
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 to #338627.
Elicitation answer placeholders are difficult to read in Light 2026 and Dark 2026. Set those themes' existing
editor.placeholder.foregroundvalues so placeholders exceed 4.5:1 contrast while remaining distinguishable from entered text.The current answer field uses Monaco's placeholder overlay, not a native input placeholder. Its semantic token is already correct; the inherited ghost-text colors are too faint. This changes only the two themes' placeholder values, leaving inline completions, custom token overrides, and high-contrast themes unchanged.
Before and after
Matched headless captures of the production question carousel, including the auxiliary-bar background cascade. Light 2026 improves from 3.5603543474602684:1 to 4.753447789207311:1 on
#FAFAFD; Dark 2026 improves from 3.1168823577501694:1 to 5.182932868292986:1 on#191A1B.Validation
pnpm run build-fast --client-only— passed.pnpm run test-node --run src/vs/workbench/contrib/themes/test/node/defaultThemeColors.test.ts— 12 passed; both new contrast regression cases fail without the theme entries.pnpm run test-browser-no-install --run src/vs/workbench/contrib/chat/test/browser/widget/chatContentParts/chatQuestionCarouselPart.test.ts --browser chromium --grep 'boolean question with custom answers|Escape in the empty custom answer|renders summary when constructed with isUsed|blocks submit on required empty text field'— 4 passed.pnpm run eslint src/vs/workbench/contrib/themes/test/node/defaultThemeColors.test.tsandgit diff --check— passed.To try: in Light 2026 and Dark 2026, trigger an MCP elicitation form with a text answer. Check the empty answer placeholder, focus the field, type an answer, and clear it. The placeholder should remain readable but quieter than entered text.