Skip to content

fix: make testing icon colors inherit from list error/warning foreground#304959

Merged
connor4312 merged 3 commits intomicrosoft:mainfrom
yogeshwaran-c:fix/testing-icon-color-inheritance
Mar 27, 2026
Merged

fix: make testing icon colors inherit from list error/warning foreground#304959
connor4312 merged 3 commits intomicrosoft:mainfrom
yogeshwaran-c:fix/testing-icon-color-inheritance

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Polish / debt reduction

What is the current behavior?

The testing icon colors (testing.iconFailed, testing.iconErrored, testing.iconQueued) use hardcoded color values that don't match the semantic color tokens used elsewhere in the list widget. For example, testing.iconFailed uses #f14c4c while list.errorForeground uses #F88070 (dark) / #B01011 (light).

Closes #252993

What is the new behavior?

  • testing.iconFailed now inherits from list.errorForeground
  • testing.iconErrored now inherits from list.errorForeground
  • testing.iconQueued now inherits from list.warningForeground

This ensures that test explorer icons are visually consistent with the error and warning styling used by other list widgets (e.g., problems panel, outline view).

Users who have customized these colors in their settings.json will not be affected since explicit overrides take precedence over the default inheritance.

Additional context

Single-file change in src/vs/workbench/contrib/testing/browser/theme.ts. TypeScript compilation passes with no errors.

Make testing.iconFailed and testing.iconErrored inherit from
list.errorForeground, and testing.iconQueued inherit from
list.warningForeground, so that test explorer icons are consistent
with the rest of the list widget error and warning styling.

Closes microsoft#252993
@connor4312 connor4312 enabled auto-merge (squash) March 26, 2026 16:00
@connor4312 connor4312 merged commit 228f1b6 into microsoft:main Mar 27, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider making testing.iconFailed and testing.iconErrored inherit from list.errorForeground

4 participants