Focus accessibility
The tab key can be used to navigate through the modal. When the user arrives on the modal, he can either hit tab to reach the content or the button at the bottom, or hit enter to close the modal.
- Trapped focus: Once the modal is open, the focus must remain inside. Navigate with ‘Tab’ without leaving the modal.
- Close with ‘Escape’: To remove the modal at any time.
- Scroll blocking: The content behind the modal must be blocked.