alertdialog
The ARIA role for a modal dialog that interrupts the user with an urgent message needing a response, such as confirming a deletion.
In more detail
An alert dialog must have a title and description, cannot be dismissed by clicking the backdrop, and should put initial focus on the least destructive action, such as Cancel. It otherwise behaves like a modal dialog.
Related terms
- modal dialog — A window laid over the page that users must deal with before returning to the page beneath, with role="dialog" and aria-modal="true".
- initial focus — The element that receives focus when an overlay opens.
- aria-describedby — An ARIA attribute that links an element to other elements, by id, whose text gives it a longer description.
Taught in
- Modal Dialogs & Alert Dialogs: Accessible Overlay Patterns — Design Systems & Component Engineering