Repository navigation
Fix Modern UI editor tab decoration color on full label - #325291
Merged
Hawk Ticehurst (hawkticehurst) merged 5 commits intoJul 10, 2026
Merged
Hawk Ticehurst (hawkticehurst) merged 5 commits into
Hawk Ticehurst (hawkticehurst) merged 5 commits into
Conversation
Modern UI style overrides forced tab label link colors with !important, which overrode file decoration colors so only badges stayed tinted. Skip decorated labels and inherit the decoration color across the full tab label. Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes Modern UI editor tabs so file-decoration colors tint the complete label, matching classic UI.
Changes:
- Excludes decorated labels from forced active/inactive foreground colors.
- Propagates decoration color across label elements.
Hawk Ticehurst (hawkticehurst)
approved these changes
Jul 10, 2026
Hawk Ticehurst (hawkticehurst)
left a comment
Member
There was a problem hiding this comment.
Looks great! Thank you!
Contributor
Author
|
Thanks Hawk Ticehurst (@hawkticehurst) for the review and approval! |
TylerLeonhardt
approved these changes
Jul 10, 2026
Michael Lively (Yoyokrazy)
approved these changes
Jul 10, 2026
Hawk Ticehurst (hawkticehurst)
merged commit Jul 10, 2026
2df67b3
into
microsoft:main
29 checks passed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #325246
Summary
With Modern UI (
workbench.experimental.modernUI) enabled, file decoration colors (e.g. git modified / problem colors) no longer tint the editor tab filename. Badges still show the decoration color, but the label text is forced to the normal foreground.Root cause: Modern UI style overrides in
tabs.cssset:Those rules override the decoration color class applied to
.monaco-icon-label(monaco-decoration-itemColor-*), so only badge::aftercolors remain visible.Changes
monaco-decoration-itemColor-*class from the forced Modern UI tab label colors.How to Test
"workbench.experimental.modernUI": true."workbench.editor.decorations.colors": true(default).Before: filename stays normal foreground; only badges are decoration-colored.
After: the full tab label text uses the decoration color, same as classic UI.