feat(theme): surface contrast ratio on accent hover (MAPPS-288) #305
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!305
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-288-wcag-contrast-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The theme picker already disabled accent dots whose
on_accent-on-fillcontrast fell below WCAG AA (passes_aa(...)), but the only signal a user got was the dimmed visual state and the section's "Dimmed = low contrast on this base" caption - they couldn't see what the ratio actually was or what threshold it needed to clear. Compute the ratio for every accent button and surface it on the tooltip + aria-label:Red - locked: contrast 3.2:1 (needs 4.5:1 for WCAG AA)when failing,Red (contrast 5.1:1)when passing. The disable still prevents picking a failing combination; this adds the user-visible "what / why" the AC asks for.The dimmed-mode label moves from "low contrast on this base" to "below WCAG AA on this base" so the rule (not just the vibe) is named in the UI.
#MAPPS-288