Skip to content

fix(a11y): use --ms-yellow-fg for remaining amber text/icons - #91

Open
evanclan wants to merge 1 commit into
microsoft:mainfrom
evanclan:fix/a11y-amber-fg-inline-styles
Open

fix(a11y): use --ms-yellow-fg for remaining amber text/icons#91
evanclan wants to merge 1 commit into
microsoft:mainfrom
evanclan:fix/a11y-amber-fg-inline-styles

Conversation

@evanclan

Copy link
Copy Markdown

Summary

Finishes the amber-foreground contrast sweep started in #78 (and the broader WCAG pass in #75/#77). Four React components still painted amber text/icons with bright --ms-yellow / hardcoded #FFB900, which fails WCAG 2.1 AA (~1.7:1) on light and crimson themes. Repoint them to theme-aware --ms-yellow-fg.

Problem

#78 added --ms-yellow-fg (bright on dark/aurora, dark gold #8A6A00 on light/crimson) and updated the CSS usages, but these inline styles were missed:

File Usage
QuestPanel.tsx "Total: N points" label
HelpModal.tsx NL-query feature icon
WelcomeModal.tsx NL Queries feature icon (#FFB900)
DataSourcesModal.tsx Semantic-model badge label/icon

On light/crimson, those surfaces still show the brand fill yellow as foreground text.

Solution

Replace the four inline colors with var(--ms-yellow-fg). Brand fill --ms-yellow (paired with black text on badges) and decorative borders are left untouched — matching the #78 contract documented in docs/theme-authoring-guide.md.

Out of scope

  • Graph highlight chrome in OntologyGraph.tsx (entity/relationship accent strokes, not UI text)
  • Entity sample colors (#FFB900 in ontology data)
  • Open usability report Usability issues #87 (overlay / PNG export) — separate investigation

Test plan

  • npm run test:a11y — 84/84 passed (includes amber-fg ≥4.5:1 on every theme surface)
  • Visual check on light and crimson: Welcome + Help modals, QuestPanel points total, Data Sources semantic-model badge
  • CI contrast gate

Related

Made with Cursor

microsoft#78 introduced theme-aware --ms-yellow-fg for WCAG 2.1 AA amber
foreground, but four inline component styles still used bright
--ms-yellow / #FFB900 and fail (~1.7:1) on light/crimson themes.
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.

1 participant