A modal is a dialog that intentionally interrupts a user’s page experience. It’s often used for critical information or for actions that require review or completion prior to returning to the task flow or page.


PublishedElement can be used in production
PublishedElement can be used in production
PublishedElement can be used in production
In backlogElement is in backlog
PublishedElement can be used in production

What's new

Modals have been redesigned to reflect the updated color palette and font ramp, and now incorporate accessible button behaviors. The dividers and extra styling were removed to simplify the experience and improve legibility. The modal background overlay design, which is built in to the engineering of the component, is now featured as a separate composite component in the UI kit.

When to use

ComponentUse case
ModalModals display important information that users need to acknowledge before moving ahead. They appear over the interface and block further interactions on the base page until an action is completed. Use in cases where a user’s action is critical.
NotificationA notification is a nonmodal, passive dialog that keeps users informed without blocking access to the base page. The user can continue with the experience, regardless if the notification is still on screen. Use for interactions that aren’t critical.
Message barGlobal message bars display nonmodal messages that inform users of updates or changes to system status. Contextual message bars are most often used in task flows and forms, providing users additional context or information about a task. Either can be used for critical system alerts or passive feedback.


A modal contains four main elements. The header and button group are optional, whereas the message body and dismiss icon are required

  1. Header: an optional headline
  2. Body: message text
  3. Dismiss icon: to close the modal
  4. Call-to-action: optional button group


Modal and nonmodal dialogs

Read the Nielsen Norman Group's article on when to use modals.