Components
← All components

Alert Dialog

stimeo--alert-dialog

An interrupting confirmation: no backdrop close, and confirm and cancel each report back.

  • Core
  • Alert & Message Dialog

Implements the WAI-ARIA Alert Dialog pattern. Keeping focus inside, stopping background scrolling, holding the background inert and restoring focus all work as they do in the plain dialog. Two things differ, because this one interrupts. Clicking the backdrop never closes it. Confirming and cancelling each report back separately, and a cancel tells you whether it came from Esc or from the control. Opening puts focus on the least destructive choice. All you write is the message and what happens on confirm.

running

Keyboard

KeyAction
Esc Cancel the dialog and return focus to the opener.
Tab / Shift+Tab Cycle focus within the dialog (focus trap).