Components
← All components

Alert Dialog

stimeo--alert-dialog

An interrupting confirmation: modal with no backdrop close, plus confirm/cancel events.

  • Alert & Message Dialog

The stimeo--alert-dialog controller implements the WAI-ARIA Alert Dialog pattern. It is the same modal as the dialog (focus trap, scroll lock, background inert, focus restore) with two deliberate differences for an interrupting confirmation: it never closes on a backdrop click, and it exposes explicit confirm/cancel actions that dispatch stimeo--alert-dialog:confirm and stimeo--alert-dialog:cancel (with reason user or escape). Opening moves focus to the initialFocus target — the least-destructive action by convention — or the first focusable element; Escape cancels and returns focus to the opener. The consumer writes only the message and what to do 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).