Prompt Modal

Prompt Modal prompts the user for information.

Use Cases

  • Users should be able to:
  • Open and close a modal
  • Provide and submit other inputs if the modal is interactive, such as a text field or selectable list
  • Keep focus within the modal until it is closed

Interaction & Style

Modals are purposefully interruptive. This means they appear in front of app content and disrupt the flow of content for users who may, for example, be using a screen reader to navigate the page.

As such, modals should be used sparingly and only to provide critical information. Less critical information should be presented in a non-blocking way within the flow of app content.

Keyboard Navigation

KeysActions
TabFocus lands on the next interactive element contained in the modal, or the first element if focus is currently on the last element
Shift + TabFocus lands on the previous interactive element contained in the modal, or the last element if focus is currently on the first element
Space / EnterTriggers or commits the action of the focused element
EscCloses the modal and returns focus to the element that triggered the modal