Skip to content

Dialog

Focus on a specific action or detail.

alpina-ui/interactive/dialog

Interactive preview

Bellinzona · A3 series

Print proof

Awaiting approval
Neighbourhood poster

Revision 03 · 80 copies · 2 colours

Awaiting review

Approve the proof

Confirm revision 03 of the poster before starting the print run.

Format
A3 · 297 × 420 mm
Print run
80 copies

Usage notes

Name the dialog and provide an explicit close action. Opening locks background scrolling. Escape closes it and restores focus to its trigger.

When to use

Interrupt the current view for a focused edit that can be completed or cancelled without navigating away.

When to avoid

An optional note belongs in a disclosure. A broad multi-step process benefits from a dedicated page.

Accessibility

Give the dialog a title and a named close control. On dismiss, return focus to a meaningful place in the invoking view.

Keys
KeyAction
Enter / SpaceOpen from the trigger or activate a focused action.
Tab / Shift+TabTraverse focusable controls inside the open modal.
EscapeClose the modal and return focus to its opener.

Content

Name the specific task in the title. Use a short action on each button and a sentence for any explanation.

Use
Edit delivery address / Save address
Avoid
Dialog / OK

Copy in four languages

German
Lieferadresse bearbeiten24 characters
French
Modifier l’adresse de livraison31 characters
Italian
Modifica indirizzo di consegna30 characters
Romansh
Modifitgar l’adressa da furniziun33 characters
Add to your project
npx --no-install alpina add dialog