From 31895fcea931201e2bb07687f668a6853c07105b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 17 May 2026 17:17:24 +0200 Subject: [PATCH] a11y(medications): pair window-status colour with a Lucide glyph Add CircleCheck / AlertCircle / AlertTriangle icons next to the take-now / overdue / very-overdue pill on both the generic medication card and the GLP-1 card so colour-blind users can disambiguate the three states without relying on the red-green hue. WCAG 1.4.1 (Use of Color). Symmetry kept across both surfaces. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../medications/glp1-medication-card.tsx | 26 ++++++++++++++++--- .../medications/medication-card.tsx | 26 ++++++++++++++++--- 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/src/components/medications/glp1-medication-card.tsx b/src/components/medications/glp1-medication-card.tsx index 1a82fbc74..2fec10c8f 100644 --- a/src/components/medications/glp1-medication-card.tsx +++ b/src/components/medications/glp1-medication-card.tsx @@ -4,7 +4,10 @@ import { useEffect, useReducer, useState } from "react"; import { useQuery, useQueryClient } from "@tanstack/react-query"; import Link from "next/link"; import { + AlertCircle, + AlertTriangle, Check, + CircleCheck, Flame, History, Loader2, @@ -395,13 +398,28 @@ export function Glp1MedicationCard({

+ {/* v1.4.38 W-D P2-3 — pair the colour with a Lucide + glyph so colour-blind users (red-green) can + disambiguate take-now from late from very-late. + WCAG 1.4.1 (Use of Color). */} + {currentWindowStatus.status === "in_window" ? ( +

+ {/* v1.4.38 W-D P2-3 — pair the colour with a Lucide + glyph so colour-blind users (red-green) can + disambiguate take-now from late from very-late. + WCAG 1.4.1 (Use of Color). */} + {currentWindowStatus.status === "in_window" ? ( +