Repository navigation
Modern UI tabs redesign and bug bash - #328111
Conversation
There was a problem hiding this comment.
Pull request overview
Redesigns Modern UI editor and pane tabs while addressing tab layout, interaction, and theming bugs.
Changes:
- Refines active, hover, dirty, wrapping, and action-overlay tab styles.
- Unifies text-based pane tab styling.
- Allowlists new Modern UI CSS variables.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
tabs.css |
Implements redesigned tab states and layout. |
vscode-known-variables.json |
Allowlists new CSS variables. |
Comments suppressed due to low confidence (2)
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:403
- Selected-but-inactive tabs now fall through to the generic 50%-mixed inactive foreground at line 397 instead of using
tab.selectedForeground. A theme can pairtab.selectedBackgroundwith a contrasting selected foreground, so dropping that token can make multi-selected labels illegible and ignores the user's customization. Preserve the selected-foreground override.
.style-override .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active .tab-label:not([class*="monaco-decoration-itemColor"]) a {
color: var(--vscode-tab-activeForeground) !important;
}
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:366
- The new hover rule excludes the exact icon-tab case from #327676.
activityBar.css:306-308hides.active-item-indicatorfor auxiliary-header and base-panel icon items, so those items still have no visible hover fill. Apply the rounded hover surface to the action item in those two scopes as well.
.style-override .pane-composite-part > .title > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:not(.icon):not(.checked):hover,
.style-override .pane-composite-part > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:not(.icon):not(.checked):hover {
background-color: var(--modern-ui-tab-hover-background);
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
Suppressed comments (4)
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:141
- This still represents the active tab only through a background-color change; active and inactive tabs otherwise have the same geometry and typography. For an unsaved tab, the dirty glyph is also present regardless of selection, so #326833's color-only indication remains. Add an always-visible non-color selection cue, such as a border/indicator, alongside the quieter fill.
.style-override .part.editor .tabs-container > .tab.active {
background-color: var(--modern-ui-tab-active-background) !important;
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:145
- This
!importantrule still suppresses the bottom-border element unconditionally, so a configuredtab.activeBordercan never render in Modern UI.multiEditorTabsControl.ts:1751-1755applies that token through.tab-border-bottomand this container, which means the PR does not actually fix #325250. Allow the container when.tab-border-bottomis present (including the later high-contrast overrides).
.style-override .part.editor .tabs-container > .tab .tab-border-bottom-container {
display: none !important;
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:531
- These selectors use
:focuswith a highly specific!importantoutline, so they overridekeyboardFocusOnly.css:41-44and show a focus ring after mouse clicks. Scope the focus ring to:focus-visible, and use the same modality in the checked/hover exclusions so the selected outline remains after pointer focus.
:is(.hc-black, .hc-light).style-override .pane-composite-part > .title > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus,
:is(.hc-black, .hc-light).style-override .pane-composite-part > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus {
outline: var(--vscode-strokeThickness) solid var(--vscode-focusBorder) !important;
outline-offset: calc(-1 * var(--vscode-strokeThickness));
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:20
- The new defaults move in the opposite direction from #325760: dark active tabs increase from an 18% foreground mix to 22% while inactive tabs drop from 5% to transparent (and light themes similarly move from 10%/4% to 16%/0%). This makes the active/inactive contrast substantially stronger, not less visually prominent. Please lower the active fill or use a quieter structural selection cue while keeping the active tab distinguishable.
--modern-ui-tab-active-background: color-mix(in srgb, var(--vscode-foreground) 22%, transparent);
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (2)
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:20
- This contradicts the stated fix for #325760: the active mix increases from 18% to 22% in dark themes (and from 10% to 16% in light themes), while inactive tabs become transparent. That makes the active background more—not less—prominent. Please lower the active mix and use a non-color selection cue if additional differentiation is needed for #326833.
--modern-ui-tab-active-background: color-mix(in srgb, var(--vscode-foreground) 22%, transparent);
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css:532
- These selectors restore the focus outline for
.clicked:focus, overriding the existing mouse-focus suppression.CompositeBarActionViewItemadds.clickedfor 800 ms specifically to prevent keyboard focus feedback after a mouse click (compositeBarActions.ts:247-259), so HC pane tabs now flash a focus border on pointer activation. Exclude.clickedfrom the focus rule while retaining the active outline for checked, clicked tabs.
:is(.hc-black, .hc-light).style-override .pane-composite-part > .title > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus,
:is(.hc-black, .hc-light).style-override .pane-composite-part > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus {
outline: var(--vscode-strokeThickness) solid var(--vscode-focusBorder) !important;
outline-offset: calc(-1 * var(--vscode-strokeThickness));
Fixes #326833
Fixes #325760
Fixes #327676
Fixes #328414
Fixes #328914
Fixes #328674
Major updates to tab design + fixing a lot of random bugs:
Editor tabs before / after
Default resting states:
Hover states:
Miscellaneous tab states / customizations:
Panel tabs before / after
Default resting states:
Hover states:
Sidebar tabs before / after