Modal dialogs

A dialog that blocks everything costs attention, and it is worth that only when a decision truly must come first.

Reading an article. A newsletter dialog that opens by itself interrupts the person mid-sentence and has to be dismissed. With the sign-up in the page instead, they read on without interruption.

The answer

Use a modal only when people must respond before anything else, and only after their own action. As strong as the weakest rule behind it: moderate.

  • Use a modal dialog only when people must respond before anything else can continue. Put everything else on the page.
  • Open a modal only in response to something people did, except for warnings they must see, such as an expiring session.

The other rules

  • People must be able to leave a modal with the keyboard alone.
  • While a modal is open, block the rest of the page and keep keyboard focus inside the dialog.
  • Close on Escape, and show a Close button.
  • Show one modal at a time.
  • Don’t ask for a decision in a modal when the information needed is hidden behind it.
  • Close a modal on an outside click only when nothing typed or chosen would be lost.

Accessibility

Open questions

  • OpenDo modal dialogs cause more errors or abandonment than in-page alternatives? One small study on error messages only.
  • OpenOutside-click dismissal: no evidence.
  • OpenNo systematic review or large online experiment on modal dialogs was found.
Checked November 12, 2026

Sources