Feedback
An event that needs a message has one right place for it. Two questions choose it: who caused the event, and whether it needs your decision before anything else happens.
Choosing the component
Toast
Your action changed something out of view, or can be undone.
Inline message
A condition of the page or panel you are on.
Some notifications did not load.
Dialog
An act that cannot be undone needs your decision.
Delete this board for everyone?
The board and its items are deleted for everyone. This cannot be undone.
Notification
Something happened elsewhere, or someone else did it.
- The change shows where you made it
- No message: the change is the confirmation
- Your action did not go through
- Error toast, or an error inline message when the page cannot go on
- A value the form cannot accept
- Error under the field
- Work is under way
- Skeleton, progress bar or spinner
Match the weight to the event
Interrupt only for a decision.
A dialog stops your work and a toast passes by. An inline message waits at the top of its page, and a notification waits under the bell until you look.
Confirm what you cannot see. You expect most actions to work, so a message about one that did not matters more than a message about one that did.
Undo before confirm
When an action can be reversed, do it at once and offer Undo in a toast. Keep the confirmation dialog for what cannot come back, such as deleting a board for everyone.
- Sita Gurung
- Ram Thapa11 Sep
You press Archive
- Ram Thapa11 Sep
It is done, and Undo is one press away
One event, one message
An event produces one message in one place. When an offer is not sent, you see one error, not also a notification. A mention you are already reading does not arrive again as a notification. While a dialog is open, a message about its work appears inside the dialog, where you are looking.
What a screen reader hears
The page keeps one polite live region. Toasts, the end of a long task and newly loaded content speak through it once. Only an error that appears after you act speaks as an alert. No message takes focus, except a dialog and the message at the top of a form.
<!-- present from the moment the page loads, and kept -->
<div role="status" aria-live="polite" class="visually-hidden"></div>Permitted and not permitted
Permitted
Archive at once, then Undo in a toast
You keep working and can still take it back.
Not permitted
Are you sure? before archiving
Archiving can be undone. The question only slows you down.
A toast and a notification for one offer that was not sent
You hear about one event twice.