Skip to content

Enhance modals with focus trap, ESC close, and ARIA attributes#507

Open
helenahelenavanbeek-png wants to merge 1 commit into
Remitwise-Org:mainfrom
helenahelenavanbeek-png:a11y/modal-focus-trap
Open

Enhance modals with focus trap, ESC close, and ARIA attributes#507
helenahelenavanbeek-png wants to merge 1 commit into
Remitwise-Org:mainfrom
helenahelenavanbeek-png:a11y/modal-focus-trap

Conversation

@helenahelenavanbeek-png

Copy link
Copy Markdown

Closes #473

- Add useFocusTrap hook with focus trapping, ESC close, overlay click
- Add role=dialog and aria-modal=true to EmergencyTransferModal
- Add role=dialog and aria-modal=true to HowItWorksModal
- Add focus restore on close
- Prevent background scroll when modal open
- Respect prefers-reduced-motion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add focus-trap, ESC-close, and aria-modal to EmergencyTransferModal and HowItWorksModal

1 participant