Concept 3 of 27· UI patterns and content
  1. 1UI design patterns
  2. 2UI components
  3. 3Modal dialogs
  4. 4Toast notification
  5. 5Modal vs toast
  6. 6Selection controls
  7. 7Segmented control
  8. 8Tabs
  9. 9Tabs vs accordion
  10. 10Date picker
  11. 11Notifications and badges
  12. 12Icons and labels
  13. 13Cards
  14. 14Carousel
  15. 15Data table
  16. 16Stepper (wizard)
  17. 17Search with autocomplete
  18. 18Filtering and faceted search
  19. 19Pagination vs infinite scroll
  20. 20Command palette
  21. 21UX writing
  22. 22Microcopy
  23. 23Writing for scanning
  24. 24Voice and tone
  25. 25Empty states
  26. 26Onboarding
  27. 27Contextual help

Share this card

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.

A modal dialog sits on top of the page and blocks everything behind it until you respond, like this photo app asking before it deletes an album for good. Use one only when it matters: if they pop up too often, people click through without reading.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. WAI-ARIA has a special alert dialog role for dialogs that carry an urgent message, where focus goes straight into the dialog.

  6. 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.

  7. 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.

Last checked 3 Nov 2026

Popular searches

Cookie settings

Choose which optional cookies SimplyUX can use. Your choice is saved in this browser. Privacy policy