diff --git a/src/components/medications/wizard/WizardStepper.tsx b/src/components/medications/wizard/WizardStepper.tsx index 7912202b9..c46848754 100644 --- a/src/components/medications/wizard/WizardStepper.tsx +++ b/src/components/medications/wizard/WizardStepper.tsx @@ -72,13 +72,18 @@ export function WizardStepper({ ? currentIndex : steps.reduce((acc, n, i) => (n <= current ? i : acc), 0); + const activeStepNumber = steps[activeIndex]; + const activeLabel = + labels[activeStepNumber] ?? String(activeStepNumber ?? current); + return (
+
+
+ + {/* Compact caption — on narrow viewports the per-dot labels collapse + to the active dot only, so this line names where the user stands + ("Step 4 of 8 · How often") instead of leaving bare dots. Hidden + from `sm+` where every dot carries its own label, and aria-hidden + because the group already announces `srLabel`. */} +
); }