Accessibility · Middle · Question 33 of 75
A confirm dialog like "Delete project?" should use which role?
- 1
status, with focus moved to the page heading - 2
tooltip, with focus left on the opening button - 3
alertdialog, with focus on the least destructive action
Show the answer
Correct answer: alertdialog, with focus on the least destructive action
Explanation
alertdialog signals an interruption that needs a response. Placing initial focus on Cancel avoids accidental deletion.