Skip to content

FIX: Improve selected configuration path contrast - #2643

Merged
Roman Lutz (romanlutz) merged 5 commits into
microsoft:mainfrom
ZedingZhang:fix/2641-selected-path-contrast
Sep 15, 2026
Merged

Roman Lutz (romanlutz) merged 5 commits into
microsoft:mainfrom
ZedingZhang:fix/2641-selected-path-contrast

Conversation

@ZedingZhang

Copy link
Copy Markdown
Contributor

Description

Fixes #2641.

The selected EditorWorkspace navigation item uses a primary brand background, but its secondary path retained colorNeutralForeground3. Apply colorNeutralForegroundOnBrand only to the selected item's secondary text while preserving the muted color for unselected items.

With the Fluent UI 9.74.7 web themes, the selected-state contrast is now:

  • Light: #ffffff on #0f6cbd — 5.38:1
  • Dark: #ffffff on #115ea3 — 6.66:1

Both exceed the 4.5:1 requirement.

Tests and Documentation

  • npm run lint
  • npm run type-check
  • npm run build
  • npm test -- --runInBand src/components/Configuration/Configuration.test.tsx — 10 passed
  • npm test -- --runInBand --testPathIgnorePatterns=LabelsBar.test.tsx — 1,346 passed

The full suite passed 1,423 of 1,424 tests. The remaining existing LabelsBar click-away test failed independently when rerun alone and does not import or exercise EditorWorkspace. No documentation change is needed for this visual bug fix.

Inherit the primary button foreground so selected paths follow system colors across hover, pressed, and focus states.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Sep 15, 2026
Merged via the queue into microsoft:main with commit e4807c7 Sep 15, 2026
41 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.

Selected configuration file path fails contrast in light and dark themes

2 participants