Content · SU-178 · SU-181
A confirmation names the action and its consequence
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Title
“Are you sure?”
-
Title
names the action and object
Are you sure?
This action cannot be undone.
Delete project “Atlas”?
This removes 24 invoices and 3 members’ access. You can’t undo this.
-
Buttons
OK · Cancel
-
Buttons
Cancel · Delete project
What changes
- Bad
- “Are you sure?” never says about what, and the red “OK” button hides the verb for an action that cannot be undone.
audit.js: SU-178 warn: dialog button "OK" does not name the action - Good
- The title names the project, the body counts what goes (
24invoices,3members), and the button repeats the verb.
The rules
-
SU-178
Buttons name the outcome: verb + object. "Create invoice", "Delete 3 files", "Save changes". Dialog buttons repeat the title's verb.
-
SU-181
Confirmations name the action and its consequence. The title asks about the specific action and object ("Delete project "Atlas"?"). The body states the consequence ("This removes 24 invoices and 3 members' access. You can't undo this."). The primary button repeats the verb, and Cancel is never the default for a destructive action. Prefer Undo (SU-161) for anything reversible. Type-to-confirm only for irreversible, wide-reaching actions.