The Modal
Earns its place — narrowly documentedA modal is an interruption with a door policy: it seizes focus, dims the world behind it, and refuses to let anything continue until its one question is resolved. That seizure is the entire design — and the entire risk. Used precisely, it is the interface saying this cannot wait. Used habitually, it is the interface saying we don't trust you to notice things, forty times a day.
Use when
- A decision must be resolved before anything else can continue
- The action is destructive and the cost of a mis-click exceeds the cost of interruption
- The task is short, self-contained, and loses meaning outside its context
Avoid when
- The content could simply live on the page behind it
- The task involves reference to the page you just hid
- It fires on arrival — a modal nobody asked for is an ad
- An undo would make the confirmation unnecessary
Why documented: The ARIA Authoring Practices specify the dialog’s focus trap, Escape, and focus return. The access requirements are not opinion.