L3 - Default
The generic Modal component should be improved in terms of usability and accessibility:
- add aria-role "dialog"
- if any element on the underlying page is focused, move focus to modal once it opens (see below)
- trap the focus on the modal (tabbing around should never be able to move the focus outside the modal)
- Hitting Return/Enter confirms the dialog
- Hitting Esc closes/cancels the dialog
- it would be nice if the first input[text] in the modal auto-focussed once the modal opens