The ESC key does not dismiss/close the modal.
- Rule ID:
- User Impact:
- WCAG :
Modals or layers that appear should close on ESC.
Some people cannot use a mouse due to vision or motor disabilities. The ARIA design pattern for dialogs recommends that dialogs allow use of the Escape key to dismiss a dialog in addition to a visible element with role button that closes the dialog, such as a close icon or cancel button.
How To Fix