Currently when a modal is open the focus is not trapped within the modal. This means when hitting the tab key while the modal is open the whole page (behind the modal) is tabbed through.
When open, modals should have all focus fixed within so a user can use the tab key to interact with the modal's content, buttons etc.
Also, user's should be able to use the escape key to close the modal.
Currently when a modal is open the focus is not trapped within the modal. This means when hitting the
tab
key while the modal is open the whole page (behind the modal) is tabbed through.When open, modals should have all focus fixed within so a user can use the
tab
key to interact with the modal's content, buttons etc.Also, user's should be able to use the
escape
key to close the modal.