fix(#69): crisis overlay initial focus targets enabled element #90

Closed
Rockachopa wants to merge 1 commits from burn/69-1776218206 into main

1 Commits

Author SHA1 Message Date
Timmy
c058701b84 fix(#69): crisis overlay initial focus targets enabled element
All checks were successful
Sanity Checks / sanity-test (pull_request) Successful in 10s
Smoke Test / smoke (pull_request) Successful in 16s
Problem: showOverlay() disabled the dismiss button then called
overlayDismissBtn.focus(). Disabled buttons can't receive focus,
so the overlay opened without a valid keyboard focus target.

Fix: Focus the Call 988 link (.overlay-call) instead — it's always
enabled and is the most important action in the crisis overlay.

Changes:
- index.html: Focus .overlay-call link on overlay open
- tests/test_crisis_overlay_focus_trap.py: New test for initial focus

Refs #69
2026-04-14 22:18:37 -04:00