Skip to content

Modern UI: panel and secondary side bar tabs have no hover background, side bar tabs do #327676

Closed

Description

  • VS Code Version: 1.130.0 (1b6a188)
  • OS Version: Darwin arm64 27.0.0 (macOS 26.0)
  • Does this issue occur when all extensions are disabled?: Yes — the rules involved are core workbench CSS

Steps to Reproduce

  1. Enable workbench.experimental.modernUI.
  2. Set "workbench.activityBar.location": "top" so the side bar and secondary side bar render their composite bars as icon tabs.
  3. Hover a tab in the primary side bar (Explorer / Search / Source Control) — a rounded hover pill appears behind the icon.
  4. Hover a tab in the panel (Problems / Output / Terminal), or in the secondary side bar — nothing is painted.

Expected

All three composite bars give the same hover feedback.

Actual

Only the primary side bar does.

Cause

In Modern UI the hover pill is painted on the .active-item-indicator child element, in styleOverrides/browser/media/activityBar.css:

.style-override .pane-composite-part > .title > .composite-bar-container:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) > .composite-bar > .monaco-action-bar .action-item.icon:not(.checked):hover .active-item-indicator,
.style-override .pane-composite-part > .header-or-footer > .composite-bar-container:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) > .composite-bar > .monaco-action-bar .action-item.icon:not(.checked):hover .active-item-indicator {
	background-color: var(--vscode-list-hoverBackground);
}

For the panel and the secondary side bar, though, that element is hidden — same file:

.style-override.monaco-workbench .part.auxiliarybar > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .active-item-indicator,
.style-override.monaco-workbench .pane-composite-part.basepanel > .title > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .active-item-indicator {
	display: none;
}

It is hidden because for those two parts the active pill was moved onto .action-item itself, in styleOverrides/browser/media/tabs.css:

.style-override .part.panel > .title > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.checked {
	background-color: color-mix(in srgb, var(--vscode-foreground) 10%, transparent) !important;
}

(plus the two equivalent rules for .part.auxiliarybar > .title and > .header-or-footer.)

The checked pill was moved, the :hover pill was not. tabs.css has no :hover rule for these action items, and the one in activityBar.css now targets a hidden element — so hovering these tabs paints nothing. The primary side bar keeps its indicator visible and therefore still shows the hover pill.

Suggested fix

Add the matching hover rule in tabs.css for the parts whose indicator is hidden — .part.panel > .title and .part.auxiliarybar > .title | .header-or-footer — on .action-item:not(.checked):hover, using var(--vscode-list-hoverBackground) so it stays themable and consistent with the side bar.

Related

#327267 — same area: the active pill for these tabs is hardcoded and not themable.

Activity

  1. added
    unreleased
    on Jul 31, 2026
  2. added this to the 1.132.0 milestone on Jul 31, 2026
  3. vs-code-engineering commented on Jul 31, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #328111 for verification:

    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

    Source PR: #328111

  4. added
    insiders-released
    and removed
    unreleased
    on Jul 31, 2026
  5. locked and limited conversation to collaborators on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

insiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions