Component guide
Dialog
Dialogs interrupt the current context. Use them sparingly and document how focus moves in, stays available, and returns.
ASK BEFORE HANDOFF
- 01
Does the dialog need to block the page?
- 02
Which element receives initial focus?
- 03
Where does focus return after close?
ANNOTATION STARTER
Make the intent visible.
Copy this model into a design note, then adapt it to the actual component and platform.
- Role
- Dialog; modal when background is unavailable
- Accessible name
- Reference the visible dialog title
- State
- Open; busy or error when applicable
- Behavior
- Move focus inside, contain it for modal dialogs, close with explicit action and Escape