From 786454ee2f7edabc23ae27937e1a3bcfaa328686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 3 Jun 2026 08:47:05 +0200 Subject: [PATCH] fix(ui): repoint medication + admin status colours to theme tokens for light-mode AA The intake-history taken badge and the admin reminders status glyphs used bare Tailwind -400/-500 shades chosen for the dark theme. On the white Alucard light card those land well below WCAG AA (green-400 1.74:1, red-400 2.77:1, yellow-400 1.53:1). Repoint to the success / destructive / warning theme tokens (light values 6.1:1 / 5.0:1 / 5.8:1 on white) and pin the original shades behind dark: so the dark rendering stays identical. --- src/components/admin/reminders-section.tsx | 12 ++++++------ .../medications/intake-history-list-v2.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/admin/reminders-section.tsx b/src/components/admin/reminders-section.tsx index 779780777..cd2bf61de 100644 --- a/src/components/admin/reminders-section.tsx +++ b/src/components/admin/reminders-section.tsx @@ -236,9 +236,9 @@ export function RemindersSection() { {testNotification.data.results.map((r, i) => (
{r.success ? ( - + ) : ( - + )} {r.channel} {r.error && ( @@ -281,11 +281,11 @@ export function RemindersSection() { {med.schedules.map((sched, j) => { const statusColor = sched.status === "open" - ? "text-green-400" + ? "text-success dark:text-green-400" : sched.status === "threshold" - ? "text-yellow-400" + ? "text-warning dark:text-yellow-400" : sched.status === "missed" - ? "text-red-400" + ? "text-destructive dark:text-red-400" : sched.status === "skipped" ? "text-muted-foreground" : ""; @@ -299,7 +299,7 @@ export function RemindersSection() { {sched.label} {sched.notificationSent && ( - + {t("admin.reminderCheckNotifSent")} diff --git a/src/components/medications/intake-history-list-v2.tsx b/src/components/medications/intake-history-list-v2.tsx index 27cdb3432..a35dd9796 100644 --- a/src/components/medications/intake-history-list-v2.tsx +++ b/src/components/medications/intake-history-list-v2.tsx @@ -361,7 +361,7 @@ export function IntakeHistoryListV2({ {isTaken ? (