Toast alert

Toast alerts are displayed at the top and center, just below the header nav.
Toast alerts are meant to display quick one-line NON-CRITICAL messages for a glimpse such as success, warning, error etc.

Usage

Toast alerts are designed to display concise non-critical messages such as an update, success state, warning, error or loading. They appear at the top and center of the display, just below the header nav.

Anatomy

Anatomy

Side Bar : To indicate the type of toast alert using color.
Icon : To indicate the type of toast alert
Toast Message : One-line NON-CRITICAL message
Action Link (optional) : A link to call to action
Close Button (optional) : To close the toast alert

Appearance

Default/Informational Toast

Use to convey general information or confirmations that aren’t ciritcal.
Default toast

Success Toast

Use to indicate that something was successful.
Success toast

Warning Toast

Use to display information that needs attention or that users need to action on before something goes wrong
Warning toast

Error Toast

Use to inform users that something has gone wrong. Reserve it for errors not caused by the users such as a connectivity issue.
Error toast

Loading Toast

Use to show users that something is currently loading
Loading toast

Configurations

Non-Closeable and Closeable Toasts
Allowing users to close toasts banner could provide a better user experience, eitherway, toasts should automatically disappear within 10 seconds
Variant
Light and Dark color variants
Use light toast when the background it will appear over is dark. Use dark toast when the background it will appear over is light
Variant
Toast with Action Link
Only include an action in toast if the same action is available elsewhere on the page. Keep the action label short, preferably 1 verb. For example: give users the option to Undo when they have done something like deleting an image.
Variant

Best Practices

Toast alerts are meant to be non-interrupting from a user’s journey.
Toast should be used for short messages (3-5 words) to confirm an action
Toast copy should be a short, concise and informative sentence
Please keep in mind translations when you are writing your toast copy +/- 20 characters.
Do
Don't

Toasts shoud rarely be used for error messages (Use Error and Critical Banners instead)
Reserve toasts for errors that are not caused by the users such as connectivity issue or backend issues. Use banners for other types of errors and error validation for input fields error.
Do
Don't
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.