Dialog closing UI in web apps
- To determine if a dialog should have an [x] button, ask if there is a non-destructive “dismiss” action available. If it is, add [x].
- To determine if a dialog should get dismissed by clicking outside of it, ask how important it is to prevent a person from accidentally missing this dialog. Because it’s easy to dismiss by accident.