Summary
Keyboard users should return to the triggering control after closing overlays.
Affected files
src/components/ui/Modal.tsx
src/components/ui/Drawer.tsx
src/hooks/useFocusTrap.ts
Tasks
- Verify focus trap and restore behavior in Modal and Drawer.
- Add tests covering open → close focus return.
- Fix any regressions in
useFocusTrap.
Acceptance criteria
Suggested labels
cleanup, a11y, testing
Notes
Standalone cleanup issue from CLEANUP_ISSUES_2026-05.md. Complements the audit queue and product backlog.
Summary
Keyboard users should return to the triggering control after closing overlays.
Affected files
src/components/ui/Modal.tsxsrc/components/ui/Drawer.tsxsrc/hooks/useFocusTrap.tsTasks
useFocusTrap.Acceptance criteria
Suggested labels
cleanup,a11y,testingNotes
Standalone cleanup issue from CLEANUP_ISSUES_2026-05.md. Complements the audit queue and product backlog.