Dialog
Event log
- Nothing yet.
Variants
Each button opens the dialog with that variant. Escape, the close button or a press on the overlay closes it.
Sizes
One dialog per size preset, all with the opaque variant.
Playground
Every option of the dialog frame. Position anchored and scrollable apply to any variant.
Slots
Header, body, section, footer, form row and field stack drawn outside a dialog.
A section after the first has 12px of padding above.
A large section has 20px.
Body size scrollable
This action cannot be undone.
Body size viewport
This action cannot be undone.
Body size topPositioned
This action cannot be undone.
Body size full
This action cannot be undone.
Body size tall
This action cannot be undone.
Behaviour
Focus, dismissal, nested layers, height animation, locked dismissal and a form with an error and a disabled button.
Select this sentence, then open the dialog: the selection is cleared.
Modal
The Modal compound. With the guard on, Escape and presses outside are denied while the form has changes, and the modal shakes.
Modal dialog
The Modal-based dialog with its own header, close button and footer.
Shell, sheet and frame
The standard shell, its image sheet, and the anchored frame.
Light, dark, right to left and zoom
Each panel sets its own theme scope and holds its dialog (non-modal, so the page stays usable). The nested panels put the opposite theme inside; their dialogs follow the nearest scope.
Light panel
Dark panel
Light panel nested in a dark one
Dark panel nested in a light one
Page zoom 1.25: the dialog is drawn with CSS zoom 1.25 (a dialog in a portal container is not scaled).
Right to left