Modal content.
WHAT A DIALOG IS
Something demanding attention before anything else continues.
WHEN TO USE ONE
Confirming something destructive A short focused task Something genuinely requiring a decision now
WHEN NOT TO
Information that could be shown in place Anything long Anything the person did not initiate
THAT LAST POINT
Interruptions the person did not cause are resented and dismissed unread.
WHAT A DIALOG NEEDS
A clear title stating what it is about Plain explanation Actions labelled with what they do A way to dismiss
WHAT TO LABEL THE ACTIONS
The action, not yes and no.
"Delete account" and "Keep account", not "OK" and "Cancel".
WHY
People read the buttons, not the text.
WHAT TO BE CAREFUL WITH
Dialogs on small screens Dialogs that lose the content behind them Stacked dialogs
WHAT TO ENSURE
Keyboard access, and focus moving into the dialog and back out.
WHAT TO AVOID
Confirming everything, which trains people to dismiss without reading.