fix(web): give the warning badge a dark-mode amber pair #461

Merged
nrupard merged 1 commit from fix/BUNYIP-463-warning-badge-dark into main 2026-08-04 20:16:02 +02:00
Owner

What

Change the warning badge variant (ui.rs:190) from bg-primary/15 text-primary to bg-amber-500/15 text-amber-700 dark:text-amber-300.

Why

No dark pair meant text-primary (reed-green) hit 2.03:1 on its own tint in dark mode - an AA fail; the success sibling already has dark:text-teal-400. The amber pair passes AA in both themes and matches feedback.rs:680 (so the utilities are already compiled into the bundle). UI audit (BUNYIP-455) finding F19.

Closes BUNYIP-463.

## What Change the `warning` badge variant (ui.rs:190) from `bg-primary/15 text-primary` to `bg-amber-500/15 text-amber-700 dark:text-amber-300`. ## Why No dark pair meant `text-primary` (reed-green) hit 2.03:1 on its own tint in dark mode - an AA fail; the `success` sibling already has `dark:text-teal-400`. The amber pair passes AA in both themes and matches feedback.rs:680 (so the utilities are already compiled into the bundle). UI audit (BUNYIP-455) finding F19. Closes BUNYIP-463.
fix(web): give the warning badge a dark-mode amber pair
All checks were successful
E2E PR gate / Install + reachability (no deployment secrets) (pull_request) Successful in 19s
Check / fmt + clippy + build + tests (pull_request) Successful in 4m48s
Create release / Create release from merged PR (pull_request) Has been skipped
b9edfd21d3
The warning badge variant (ui.rs:190) was `bg-primary/15 text-primary` with no dark override, so in dark mode text-primary flipped to the reed-green hsl(116 28% 31%) on its own tint = 2.03:1, an AA fail (light mode 7.28:1). Its success sibling one line up already carries `dark:text-teal-400`. Swap to an amber pair (matching feedback.rs:680) that passes AA in both themes. Warning badges label Maintenance, Grace Period, Past Due, Overridden, strike counts, and rate-limit counters. Found by the 2026-08-04 UI audit (BUNYIP-455), finding F19. amber-* utilities are already in the bundle (feedback.rs:680).

#BUNYIP-463

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: nrupard <natrsmith11@gmail.com>
nrupard deleted branch fix/BUNYIP-463-warning-badge-dark 2026-08-04 20:16:02 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/bunyip!461
No description provided.