A dialog focuses attention on a task or decision. Titles use sentence case; allow one primary action per dialog. Use modals sparingly — they interrupt workflow.
| Pattern | Blocks app | Best for |
|---|---|---|
| Modal dialog | Yes | Confirmations, critical decisions, short forms |
| Modeless dialog | No | Tools that adjust the active view with live preview |
| Feature panel | No | Multi-section settings, wizards, persistent side panels |
| Bubble | No | Lightweight contextual UI anchored to a trigger |
| Element | Description |
|---|---|
| Scrim | Dimmed backdrop for modal dialogs |
| Container | Raised surface (elevation overlay level) |
| Title | Brief, clear — avoid alarmist copy |
| Body | Concise context; do not repeat the title |
| Actions | Max two recommended; one primary only |
Primary action on the right, secondary on the left. Labels should be outcome verbs: Delete, Save, Continue — not vague Yes/Submit.
Light mode
Changes apply to the next capture only.
Dark mode
Changes apply to the next capture only.
aria-labelledby; describe purpose in the body.