Skip to content

Notifications and toasts

Status: drafted introduction, awaiting reviewIts rules are marked one by one.

A notification tells a person about something that happened while their attention was elsewhere: a build that finished, a comment on their document, a payment that failed. It can arrive in the product, by email, or on their phone. A toast is the short message that appears in the product for a few seconds right after an action and then goes away. Both are read at a glance and often out of context, so each says what happened in one line. What any success message says, wherever it appears, is in Success messages.

Tier: avoidux-notification-past-tenseCheck: judgment

Report what happened in the past tense, in one line, with an action only if the person can act on it now. Export finished, not Your export is complete!. If the action is no longer possible from where the person is, leave the button off. Role-dependent: notifications.

Instead of
Your export has been successfully completed and is now ready to download!
Write
Export finished, with a Download button

Tier: avoidux-toast-no-errorsCheck: judgmentStatus: drafted, awaiting review

Don’t put an error, a warning, or anything the person must act on in a toast. A toast disappears by itself, often before someone using a screen magnifier or a screen reader has found it, so it can carry only news the person can afford to miss. An error goes next to the thing that failed, as Error messages sets out, and a warning that needs action stays on screen until it’s dealt with, in a banner or a dialog. A toast can offer one quick action, such as Undo, when the same result is reachable some other way. Role-dependent: toasts.

Instead of
A toast reading “Payment failed. Update your card to keep your plan.” that disappears after 5 seconds
Write
A banner at the top of Billing reading “Payment failed. Update your card to keep your plan.” with Update card, which stays until the card is updated