Skip to content

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.

Maturity
beta
Links
Storybook · Figma · Spec source · Usage source

Content

About this course

Color Theory II covers colour harmony, contrast and palettes for interfaces. 12 lessons, about 4 hours.

Title only

Save your changes?

You changed your profile details. Save them to update your profile and your certificates, or cancel to keep the details you had before.

With actions
ContentUse when
Title onlyShowing details the user reads and then closes, such as an item next to the content it came from.
With actionsThe dialog asks for a decision or a short task: one accent or danger Button for it, and a neutral Cancel.

Composition

Remove this course?

Your progress in Color Theory II will be deleted. This can't be undone.

Do

Confirm an action: its consequence in the description, a neutral Cancel and one danger or accent Button.

Publish this course?

Don't

Use two accent Buttons in actions. Accent marks the one action the dialog exists for.

Edit profile

Your name appears on your certificates.

Do

Edit a few fields of one record in place: fields in the body, Cancel and Save in actions.

Profile saved

Your changes are saved.

Don't

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.