Modal dialogs
A small window on top of the page that blocks everything behind it until you respond. A non-modal dialog, by contrast, lets you keep using the page behind it.
Also called modals, dialog boxes, pop-ups
Example
A photo app opens a dialog asking you to confirm before it permanently deletes an album, and you can't do anything else until you answer.
When to use it
Use one for important warnings or for information needed to carry on, not for unrelated offers or when people need to see the page behind to decide. Keep keyboard focus inside it, let Esc close it, and send focus back to the button that opened it.
Watch out
If confirmation dialogs pop up too often, people learn to click through them without reading.
The evidence 7 sourced claims
Every sentence on this card traces back to one of these claims, each linked to its source. How we research
A dialog is a small, temporary window where people complete a task or give information. Shown as modal, it blocks the rest of the page, which can't be used until the dialog closes; shown as non-modal, the page behind stays usable.
A modal dialog sits on top of the main content and needs a response before people can go back to it; a non-modal dialog, such as an email compose window, lets people keep working alongside it.
Modal dialogs suit important warnings (for example, before losing unsaved work) and asking for information needed to continue a task. Avoid them for content unrelated to the task (such as newsletter sign-ups), in the middle of checkout, and when people need to see what's behind the dialog to decide.
For keyboard users, focus moves into an open modal dialog, Tab and Shift+Tab cycle only through its controls, Escape closes it, and focus usually goes back to the button that opened it. The dialog needs a name, ideally its visible title.
WAI-ARIA has a special alert dialog role for dialogs that carry an urgent message, where focus goes straight into the dialog.
When confirmation dialogs pop up too often, people learn to click through them without reading, so they stop catching mistakes and later warnings lose their force.
In a field experiment with about 80,000 users, people seemed used to interrupting consent dialogs: they accepted more readily when a dialog looked like a familiar licence agreement.