mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
fix(design): Dracula tokens + Romance BP abbreviations + therapy-timeline polish
- GLP-1 medication card streak flame: `text-orange-400` → `text-dracula-orange`. The hardcoded Tailwind shade was skewing warm against the rest of the card. - /insights/medikamente compliance counters: `text-green-500` / `text-orange-500` / `text-red-500` → `text-dracula-green` / `-orange` / `-red`. Same drift in three sibling spans on one surface; replace as a set. - Side-effect affordance: `Smile` icon read as a positive affordance for a *negative* logging surface. Switch to `Stethoscope` so the icon matches the clinical context. - Health Score componentBp: FR `BP` → `TA`, IT `BP` → `PA`, ES `BP` → `PA`, PL `BP` → `RR` — the native compact forms used in clinical practice. DE "Blutdruck" + EN "BP" unchanged. - Therapy-timeline `<li>` key: array index → composite (`kind-date-medicationName`). Prevents DOM-reuse bugs when a dose change is logged mid-window and reorders the list. - Therapy-timeline inline icons: `aria-hidden="true"` on the `<Pill>` injection glyph and the dose-arrow `<ArrowUp>` / `<ArrowDown>` so screen readers stop announcing "image" mid-sentence. - Medication-form Dialog tap targets: the schedule-row dropdown trigger (`h-7 w-7`) and the New-schedule button + the four schedule inputs (`h-8`) promoted to `h-11` so the dense schedule grid honours the 44px floor. The labels stay compact; the controls grow.
This commit is contained in:
1 parent
3e78da6e35
commit
8f3a95463d
8 files changed
+29
-21
No files matched your search
@@ -182,15 +182,17 @@ export default function InsightsMedikamentePage() {
|
||||
</div>
|
||||
<div className="text-muted-foreground flex justify-between text-xs">
|
||||
<span>
|
||||
<span className="text-green-500">{med.taken7}</span>{" "}
|
||||
<span className="text-dracula-green">{med.taken7}</span>{" "}
|
||||
{t("insights.taken")}
|
||||
</span>
|
||||
<span>
|
||||
<span className="text-orange-500">{med.skipped7}</span>{" "}
|
||||
<span className="text-dracula-orange">
|
||||
{med.skipped7}
|
||||
</span>{" "}
|
||||
{t("insights.skipped")}
|
||||
</span>
|
||||
<span>
|
||||
<span className="text-red-500">{med.missed7}</span>{" "}
|
||||
<span className="text-dracula-red">{med.missed7}</span>{" "}
|
||||
{t("insights.missed")}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user