Skip to content

Active panel tabs are barely visible in Modern UI #327267

Closed

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.130.0
  • OS Version: Darwin arm64 25.5.0

Steps to Reproduce

  1. Enable Workbench › Experimental: Modern UI Update
  2. Try customizing panel tab colors in workbench.colorCustomizations:
"panel.background": "#00f",
"panelTitle.activeForeground": "#ff0",
"panelTitle.activeBorder": "#f00",
"tab.activeBackground": "#f0f"
  1. Switch between panel tabs — none of these affect the active tab pill background.

Expected

The active tab is clearly visible.

Actual

The active tab is invisible in some themes:

Image

Panel tabs are composite-bar items, not editor tabs, so tab.* tokens don't apply. In
modern UI the active background is hardcoded in tabs.css:

.action-item.checked {
  background-color: color-mix(in srgb, var(--vscode-foreground) 10%, transparent)
!important;
}

panelTitle.activeBorder is also ignored — modern UI removes the underline in favor of
this pill.

Suggested fix

Add panelTitle.activeBackground.

Activity

  1. niccolomineo commented on Aug 5, 2026

    @niccolomineo

    Confirmed this also reproduces on the secondary side bar, not just the bottom panel.

    Repro:

    1. "workbench.activityBar.location": "top"
    2. Pin 2+ views to the secondary side bar (Auxiliary Bar) so it renders its own icon tab strip (.part.auxiliarybar > .header-or-footer).
    3. Customize activityBarTop.activeBackground (or activityBar.activeBackground if activity bar location isn't top) — it has no effect on the checked icon in that tab strip.

    Same cause as reported above, in tabs.css:

    .style-override.monaco-workbench:not(.hc-black):not(.hc-light) .part.auxiliarybar > .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.checked:not(:active),
    .style-override.monaco-workbench:not(.hc-black):not(.hc-light) .pane-composite-part.basepanel > .title > .composite-bar-container:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) > .composite-bar > .monaco-action-bar .action-item.icon.checked:not(:active) {
      background-color: var(--modern-ui-tab-active-background) !important;
    }

    Everywhere else (.part.sidebar in any mode, .part.auxiliarybar > .title) the checked icon still resolves through var(--vscode-activityBarTop-activeBackground) via the earlier generic .pane-composite-part rule. So with a custom theme that sets activityBarTop.activeBackground to something other than the default, the primary side bar's active view icon follows the theme while the secondary side bar's (when showing multiple pinned views) and the bottom panel's don't — same root cause as this issue, just a second pair of affected selectors worth covering in whatever fix lands (e.g. panelTitle.activeBackground falling back to activityBarTop.activeBackground/activityBar.activeBackground, same as this issue's suggested fix).

  2. iamqiz commented on Aug 5, 2026

    @iamqiz

    god damn! same issue!
    after recent update, I also found that some color customizations do not work, e.g. tab.activeBackground ,
    I spend a lot of time searching for the reasons!

    After seeing this issue, I reinstall old version vscode,
    in v1.129.1, the setting workbench.experimental.modernUI has default value false,
    but in v1.130.0, the setting change the default value to true, see picture below.

    I am very curious about why VSCode enables experimental settings by default !!!

    Image Image
  3. niccolomineo commented on Aug 10, 2026

    @niccolomineo

    Hawk Ticehurst (@hawkticehurst) — would an external PR be welcome for this, and if so which shape would you want?

    Still reproduces on main: tabs.css line 475 sets background-color: var(--modern-ui-tab-active-background) !important, so no contributed color reaches the composite-bar pill.

    Two shapes I can see:

    1. Fallback only, no new API — var(--vscode-panelTitle-activeBackground, var(--modern-ui-tab-active-background)), so themes that set nothing keep today's appearance exactly.
    2. Register panelTitle.activeBackground as suggested in the description, which is new permanent theming API.

    I'd rather not guess, since #329701 deliberately declines to restore some contributed colors (titleBar.border, statusBar.border, activityBar.border) for design reasons — so whether the pill should be themeable looks like your call, not a straightforward bug. Happy to write and test either option, including the vscode-known-variables.json entry and a high-contrast pass.

  4. mrleemurray commented on Aug 14, 2026

    @mrleemurray
    Contributor

    Resolved in #330669

  5. added this to the 1.134.0 milestone on Aug 14, 2026
  6. locked and limited conversation to collaborators on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions