mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
Closes the second half of the deferred phase-W4d test gap. The picker is a controlled SVG with 8 click-targets wrapped in invisible 22px circles carrying role=button + aria-label + tabIndex=0 (WCAG 2.5.5 minimum-tap-target + keyboard-reachable). The nextInjectionSite() helper return is dashed-ring annotated over the recommended target. Coverage (12 tests): - All 8 InjectionSite enum values render as click-targets - Active site gets the fill-primary highlight - Recommended next-site is dashed-ring annotated - onChange(site) fires for every enum value - Keyboard navigation: tabindex=0 on every target - ARIA labels EN + DE smoke (Umlaute round-trip) - aria-pressed=true on the selected site, false on the others - Empty history → recommender defaults to ABDOMEN_LEFT - Caption swap between selection line and recommendation hint - SVG body outline + role=group wrapper No production code changes.