Accessibility · Senior · Question 21 of 75

What should happen if the element that opened a dialog is gone when the dialog closes?

Show the answer

Correct answer: Move focus to a sensible nearby element you pick

Explanation

If the dialog's action removed the row, focus the next row or the list heading. Always handle this case explicitly.

Further reading

Problem with a question

Accessibility · Senior · question 21

Test yourself

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

Take this quiz