Skip to content

Modern UI tabs redesign and bug bash - #328111

Merged
Hawk Ticehurst (hawkticehurst) merged 5 commits into
mainfrom
modern-ui-tabs
Jul 31, 2026
Merged

Hawk Ticehurst (hawkticehurst) merged 5 commits into
mainfrom
modern-ui-tabs

Conversation

@hawkticehurst

@hawkticehurst Hawk Ticehurst (hawkticehurst) commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

Fixes #326833
Fixes #325760
Fixes #327676
Fixes #328414
Fixes #328914
Fixes #328674

Major updates to tab design + fixing a lot of random bugs:

  • Resting editor tabs have transparent background to match other panel tabs and improve the ability to determine which is the active/selected tab
  • Moves editor tab actions to render above tab content rather than to the side of it
  • Fixes a ton of high contrast theme bugs with regard to rendering clean outlines and adhering to the spirit of high contrast themes better
  • A ton of miscellaneous tweaks and polish

Editor tabs before / after

Default resting states:

ui-diff-20260731-104811 ui-diff-20260731-105023 ui-diff-20260731-105055 ui-diff-20260731-105117

Hover states:

ui-diff-20260731-104849 ui-diff-20260731-104938

Miscellaneous tab states / customizations:

ui-diff-20260731-105857 ui-diff-20260731-110125 ui-diff-20260731-110103 ui-diff-20260731-110438 ui-diff-20260731-110409

Panel tabs before / after

Default resting states:

ui-diff-20260731-111508 ui-diff-20260731-111532 ui-diff-20260731-111557 ui-diff-20260731-111615

Hover states:

ui-diff-20260731-111810 ui-diff-20260731-111833 ui-diff-20260731-111859 ui-diff-20260731-111925

Sidebar tabs before / after

ui-diff-20260731-112335 ui-diff-20260731-112428 ui-diff-20260731-112447 ui-diff-20260731-112509 ui-diff-20260731-112518

Copilot AI review requested due to automatic review settings July 29, 2026 21:47
@hawkticehurst Hawk Ticehurst (hawkticehurst) changed the title Modern UI tabs redesign and bug bash Editor + Agents: Tabs redesign and bug bash Jul 29, 2026

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.

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 pair tab.selectedBackground with 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-308 hides .active-item-indicator for 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);

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 4b2897c7 Current: f7766c09

Changed (81)

editor/editorTabBar/editorTabBar/ModernUIOn/Default/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/Default/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/Default/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllPinned/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllPinned/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllUnpinned/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllUnpinned/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowMixed/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowMixed/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowMixed/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsFilePathLast/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsFilePathLast/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsIconsOff/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsIconsOff/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsWithRightInset/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsWithRightInset/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingShrink/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingShrink/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingFixed/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingFixed/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabHeightCompact/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabHeightCompact/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/WrapTabs/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/WrapTabs/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionLocationLeft/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionLocationLeft/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionCloseHidden/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionCloseHidden/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionUnpinHidden/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabActionUnpinHidden/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/ShowTabIndex/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/ShowTabIndex/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/HighlightModifiedTabs/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/HighlightModifiedTabs/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatShort/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatShort/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatMedium/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatMedium/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatLong/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatLong/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/ShowIconsOff/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/ShowIconsOff/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/DecorationsOff/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/DecorationsOff/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabSizingCompact/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabSizingCompact/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabSizingShrink/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabSizingShrink/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarLarge/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarLarge/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarVisible/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarVisible/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/EditorActionsDefault/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/EditorActionsDefault/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/EditorActionsTitleBar/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/EditorActionsTitleBar/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/EditorActionsHidden/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/EditorActionsHidden/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/AlwaysShowEditorActionsActiveGroup/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/AlwaysShowEditorActionsActiveGroup/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/AlwaysShowEditorActionsInactiveGroup/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/AlwaysShowEditorActionsInactiveGroup/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/ActiveGroup/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/ActiveGroup/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroup/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroup/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroup/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/MultiSelect/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/MultiSelect/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/MultiSelect/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroupDirty/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroupDirty/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LongLabelsShrink/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LongLabelsShrink/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/DropTargetBetweenTabs/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/DropTargetBetweenTabs/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/DropTargetBetweenTabs/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/StickyCompactNoIcons/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/StickyCompactNoIcons/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedSeparateRowCompact/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedSeparateRowCompact/Light
Before After
before after

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

@hawkticehurst
Hawk Ticehurst (hawkticehurst) marked this pull request as ready for review July 30, 2026 21:06
@hawkticehurst Hawk Ticehurst (hawkticehurst) changed the title Editor + Agents: Tabs redesign and bug bash Modern UI tabs redesign and bug bash Jul 30, 2026
@hawkticehurst
Hawk Ticehurst (hawkticehurst) marked this pull request as draft July 30, 2026 21:21

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.

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 !important rule still suppresses the bottom-border element unconditionally, so a configured tab.activeBorder can never render in Modern UI. multiEditorTabsControl.ts:1751-1755 applies that token through .tab-border-bottom and this container, which means the PR does not actually fix #325250. Allow the container when .tab-border-bottom is 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 :focus with a highly specific !important outline, so they override keyboardFocusOnly.css:41-44 and 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);

@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/workbench/browser/parts/editor/editorTabsControl.ts

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.

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. CompositeBarActionViewItem adds .clicked for 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 .clicked from 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));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

3 participants