# Notifications and toasts

Source: https://watership.ca/ux-writing/notifications-and-toasts/

*Drafted introduction, awaiting review. Its 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](https://watership.ca/ux-writing/success-messages/).

### Notifications in the past tense

Rule `ux-notification-past-tense`: avoid, judgment. Address: https://watership.ca/ux-writing/notifications-and-toasts/#ux-notification-past-tense

**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](https://watership.ca/ux-writing/#role-dependent-checks): notifications.

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

### No errors in toasts

Rule `ux-toast-no-errors`: avoid, judgment. Address: https://watership.ca/ux-writing/notifications-and-toasts/#ux-toast-no-errors

**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](https://watership.ca/ux-writing/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](https://watership.ca/ux-writing/#role-dependent-checks): toasts.

*Drafted, awaiting review.*

- 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
