Repository navigation
editor: keep active connected tab Close actions visible in high contrast - #339957
Merged
Cherry Wang (chryw) merged 3 commits intoOct 6, 2026
Merged
Conversation
Scope the high-contrast override to connected tabs without changing Pill or Legacy action visibility, and expand high-contrast tab fixture coverage.\n\nFixes #339858\n\nCo-authored-by: Copilot <[email protected]>
Keep reserved action slots transparent while preserving rounded hover targets, explicit color overrides, and high-contrast visibility. Consolidate CSS state handling and organize the color fixtures by purpose. Fixes #339858 Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Theme-authored action colors are ignored by the new rounded-button styling.
Review effort: Balanced
Findings: 1
What changed in this PR
Fixes Connected tab Close-action visibility in high-contrast themes while preserving other tab styles.
Changes:
- Keeps active Connected-tab actions visible and dims unfocused actions.
- Makes reserved action overlays transparent while retaining button hover colors.
- Expands and reorganizes tab fixtures and tests.
| File | Description |
|---|---|
build/lib/stylelint/vscode-known-variables.json |
Registers new CSS variables. |
src/vs/workbench/contrib/modernUI/README.md |
Documents action styling behavior. |
src/vs/workbench/contrib/modernUI/browser/media/tabs.css |
Updates action visibility and backgrounds. |
src/vs/workbench/contrib/modernUI/test/browser/modernUI.contribution.test.ts |
Tests visibility and reserved backgrounds. |
src/vs/workbench/services/themes/browser/modernTabColorCustomizations.ts |
Emits action-color variables. |
src/vs/workbench/test/browser/componentFixtures/editor/tabs.fixture.ts |
Adds and reorganizes visual fixtures. |
test/componentFixtures/playwright/tests/editorTabBar.spec.ts |
Updates fixture paths and color assertions. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Screenshot ChangesBase: Changed (1)Added (6)Removed (5) |
roblourens
previously approved these changes
Oct 6, 2026
Recognize dedicated action colors supplied by themes as well as user overrides. Cover theme definitions, user precedence, and the default toolbar-hover fallback. Addresses review feedback on #339957. Co-authored-by: Copilot <[email protected]>
This was referenced Oct 6, 2026
roblourens
approved these changes
Oct 6, 2026
Cherry Wang (chryw)
deleted the
dev/cherwan/agents/hc-theme-tab-close-button-fix
branch
October 6, 2026 02:02
2 tasks done
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #339858.
Connected editor tabs lost the active tab's Close action in high-contrast themes when
workbench.editor.tabActionReserveSpacewas disabled. Keep that action visible without changing Pill or Legacy tab behavior.Changes
Testing
workbench.experimental.modernUI, setworkbench.experimental.modernUIEditorTabStyletoconnected, and setworkbench.editor.tabActionReserveSpacetofalse.workbench.editor.tabActionCloseVisibilitytofalseand confirm no Close action appears. Restore it, then compare Pill tabs and Modern UI disabled to confirm their existing visibility behavior is unchanged.modernEditorTab.*ActionBackgroundoverrides and confirm they color the rounded target.editor/tabs/Colorsandeditor/tabs/Layout/ActionsUnreservedto inspect the renamed color scenarios and the close-visibility regression scene.Validation
npm run compile-client— passed../scripts/test.sh --run src/vs/workbench/contrib/modernUI/test/browser/modernUI.contribution.test.ts— passed.npm --prefix test/componentFixtures/playwright test -- editorTabBar.spec.ts --workers=2— passed.npm run stylelint --silent— passed.git diff --check— passed.Visual evidence
Matched headless component-fixture captures: merge-base styling on the left, updated styling on the right. Both use Connected tabs with
workbench.editor.tabActionReserveSpace: false.Other pre-existing HC border and customized-background shoulder issues are deferred to separate work.