Accessibility · Middle · Question 33 of 75

A confirm dialog like "Delete project?" should use which role?

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.

Further reading

Problem with a question

Accessibility · Middle · question 33

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz