Modal
A layer that demands a response before you can continue.
See it on the 3D treeGoing deeper
While a modal is open, the rest of the page cannot be used until it is completed or dismissed. It suits confirming destructive actions or short, self-contained tasks. A non-modal dialog, by contrast, floats without blocking. An accessible modal moves focus inside, closes with Escape and returns focus afterwards.
Why it matters
It guarantees attention, but the interruption is costly, so choosing when not to use one matters as much as building it.
In practice
Before permanently deleting a project, a modal names the project and offers two clearly labelled buttons, Delete project and Cancel.
Common mistake
Throwing up a newsletter modal the moment someone arrives, before they have seen anything worth subscribing to.
Connected terms
- Bottom SheetA modal sheet blocks the page behind it just as a modal dialog does.
- OverlayA modal usually sits on a dimmed overlay that signals the page behind is inactive.
- PopoverA popover is anchored and lightly dismissed; a modal takes over until it is dealt with.
- ToastA toast informs without interrupting; a modal stops the person until they respond.
- Focus OrderOpening and closing dialogs requires focus to be moved and returned.
- Focus TrapA modal should keep keyboard focus inside itself while it remains open.