Tree of DesignAll terms A–Z

Modal

A layer that demands a response before you can continue.

See it on the 3D tree

Going 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