Dialog
A titled panel that takes focus: modal over an inert page, or non-modal in the page flow. Focus returns to its trigger on close.
Content
| Content | Use when |
|---|---|
| Title only | Showing details the user reads and then closes, such as an item next to the content it came from. |
| With actions | The dialog asks for a decision or a short task: one accent or danger Button for it, and a neutral Cancel. |
Composition
Confirm an action: its consequence in the description, a neutral Cancel and one danger or accent Button.
Use two accent Buttons in actions. Accent marks the one action the dialog exists for.
Edit a few fields of one record in place: fields in the body, Cancel and Save in actions.
Open a dialog to say something was saved. It takes focus for news nobody needs to act on.
Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.