Skip to content

Modern UI - Connected Tabs hover background alignment discrepancy #338948

Description

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

  • VS Code Version: 1.140.0
  • OS Version: Windows 11 Pro 25H2 (build 26200.9457)

There appears to be an extra misaligned background for tabs' close buttons that appears when the tab is hovered and the tab hover background is semi-transparent.

Steps to Reproduce:

  1. Open settings.json
  2. Add setting "workbench.colorCustomizations": {"[Light 2026]": {"modernTab.hoverBackground": "#0002"}}
  3. Set theme to "Light 2026"
  4. Enable Modern UI
  5. Select "connected" for the Modern UI Editor Tab Style
  6. Open two tabs in an editor group
  7. Hover the inactive tab (most apparent when the inactive tab has empty tab bar space beside it)

Activity

  1. added
    unreleased
    on Oct 9, 2026
  2. added this to the 1.142.0 milestone on Oct 9, 2026
  3. added
    insiders-released
    and removed
    unreleased
    on Oct 9, 2026
  4. added
    bug
    on Oct 9, 2026
  5. anthonykim1 commented on Oct 12, 2026

    @anthonykim1
    Contributor

    Verified on macOS 26.7.1 arm64 using VS Code Insiders 1.142.0-insider (ff00e788322523ee1e9e8ee2c9bb4b89af93a3c2).

    I followed the reported steps in an isolated profile: Light 2026 with "modernTab.hoverBackground": "#0002", Modern UI with Connected tabs, two open editors, and the pointer over the inactive last tab next to empty tab-bar space. I measured the rendered pixels across the hovered tab and the strip beside it, and ran the same scenario on VS Code 1.141.0 Stable as a pre-fix baseline.

    Verified:

    • The hovered inactive tab shows the semi-transparent #0002 hover fill and reveals its close button
    • The close-button container no longer paints its own copy of the hover color
    • The fill behind the close button matches the rest of the hovered tab
    • No extra paint appears beside the tab or in the gap above the fill

    Results:

    • 1.141.0 Stable reproduces the bug: the close-button container paints rgba(0, 0, 0, 0.13) on top of the tab's identical hover fill, leaving a box 26 RGB levels darker behind the close button
    • Insiders: the close-button container is transparent, and the fill behind the close button matches the rest of the fill exactly (difference 0)
    • The strip beside the tab and the gap above the fill match the empty strip (difference 0)

    The extra background behind the close button no longer reproduces in current Insiders.

    Before and after: VS Code 1.141.0 shows a darker box behind the hovered tab's close button, while Insiders shows a uniform hover fill

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

Metadata

Metadata

Labels

buginsiders-releasedmodernizationverifiedworkbench-tabs

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions