Components
← All components

Confirm Bridge

stimeo--confirm

Replaces the browser's own confirmation box with an alert dialog that works with a screen reader.

  • Core
  • Alert & Message Dialog
  • Rails / Turbo

Replaces the browser's confirmation box that Turbo puts up with an alert dialog that works from the keyboard and with a screen reader. Keeping focus inside and cancelling on Esc reuse the same machinery as the other modals. The replacement lasts only while this part is on the page and is undone when you leave, so it never stacks or lingers. It can also intercept a link or a button and let the original navigation or submission continue only once you approve. Initial focus lands on the safe side, which is cancel. On a page with no dialog present it falls back to the browser's own box. You provide the dialog's markup.

running

Keyboard

KeyAction
Esc Cancels (resolves false) and closes the dialog.
Tab / Shift+Tab Cycles focus within the dialog (focus trap).
Enter Activates the focused confirm or cancel button.