Components· 14 of 16

14 of 16

Make overlay dismissal discoverable

Give dismissible dialogs a visible Close or Cancel action and support Escape. Choose outside-click behavior according to the cost of an accidental dismissal.

Do
Don’t

DoX button + backdrop close + Esc key

Don’tNo close button, only backdrop click

Before you ship

  • Can a keyboard user discover how to leave?
  • What happens to an unsaved edit after Escape or a backdrop click?
  • Where does focus land after dismissal?

Next

Return focus when an overlay closesComponents · 15 of 16J