Skip to interview prep
Apexed

18. What interaction behavior would you specify for a confirmation dialog used without a mouse?

MediumAccessibility

Show model answer

Specify how focus enters the dialog, a logical focus order, an accessible name and clear action labels. Keep keyboard interaction within the active modal and provide an appropriate dismissal route unless the task has a justified restriction.

Define where focus returns after closing and what happens after confirmation fails. Review the specification with engineering and verify using keyboard and screen-reader tasks, including a long message and narrow viewport; a visual overlay alone does not establish modal behavior.

What interviewers listen for

  • Focus entry and containment
  • Clear actions and dismissal
  • Return focus and failure states
What interaction behavior would you specify for a confirmation dialog used without a mouse — UX / UI design interview question — Apexed