diff --git a/src/app/globals.css b/src/app/globals.css index 441b14be6..3e1e61a6d 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -71,6 +71,14 @@ --color-popover: var(--popover); --color-card-foreground: var(--card-foreground); --color-card: var(--card); + /* The one sanctioned step below `text-xs` (12px). Minted so badges, + tag chips, and tabular-nums micro-labels stop hand-rolling + `text-[0.6875rem]` / `text-[0.65rem]` arbitrary values that drift by a + third of a pixel per site. UI-STANDARDS ยง5 pins the usage: never for + muted body or meta text (the muted floor stays `text-xs`) โ only for + chips, badges, and tabular micro-labels with verified contrast. */ + --text-2xs: 0.6875rem; + --text-2xs--line-height: 1rem; --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); diff --git a/src/components/insights/metric-target-summary.tsx b/src/components/insights/metric-target-summary.tsx index 2718c3b1b..199711035 100644 --- a/src/components/insights/metric-target-summary.tsx +++ b/src/components/insights/metric-target-summary.tsx @@ -354,7 +354,7 @@ function TargetReferencePanel({ } /> {heading ? ( -
+
{heading}
) : null} diff --git a/src/components/medications/dose-history-ledger.tsx b/src/components/medications/dose-history-ledger.tsx index 9b3724a91..ef6567479 100644 --- a/src/components/medications/dose-history-ledger.tsx +++ b/src/components/medications/dose-history-ledger.tsx @@ -623,7 +623,7 @@ function LedgerRowItem({ {t(`medications.detail.verlauf.status.${row.status}`)} {row.kind === "ad_hoc" && ( -