Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Related pages: Message Popups

Table of Contents

Description

A toast is a small message box that appears in response to a user action or system event. It contains simple feedback about the event, while any current activity remains visible and interactive.

Types

Type

Usage

Example

Information

General information related to an action.

Image RemovedImage Added

Success

Actions that were completed successfully.

Image RemovedImage Added

Warning

System warnings or actions that may cause a problem.

Image RemovedImage Added

Error

System errors or actions that have failed to complete.

Image RemovedImage Added

Continuous Action

An action that takes more than 3 seconds.

Image RemovedImage RemovedImage AddedImage Added

Usage & Behavior

General guidelines

...

  • All toasts appear from the bottom-left side of the screen (using a slide effect).

  • Toasts have a fixed width.

  • The height of a toast depends on the amount of text it contains. Where there are more than 3 lines an expand button will appear, allowing the user to enlarge the toast.

Image RemovedImage Added

Image RemovedImage Added

Interaction

  • Mouseover a toast will keep it visible, even after exceeding the time limit before it disappears.

  • Clicking the closing button (x) closes the toast with a short fade effect.

  • When shown, clicking the Cancel button cancels the continuous action which has triggered the toast, and closes it. In this case, another information toast may appear, indicating that the action was canceled.

  • When shown, clicking the expand button:

    • expands the toast upwards with a slide effect, revealing the rest of the text.

    • hides the expand button.

    • pushes all other toasts upwards (see Multiple Toasts below).

...

Condition

Behavior

Design

The new toast is not an error toast (i.e. info or success toasts etc.)

The new toast will appear on top, above all previous toasts.

Image Removed

Image Added

The new toast is the first error toast on the page.

The new toast will appear at the bottom, pushing all other toasts upwards.

The new toast is an additional error toast (there are other error toasts already on the page).

The new error toast will be stacked behind the existing error toasts. It should appear underneath and slightly above the previous error toasts, showing the first line of text. In this case:

  • The user can switch between toasts by clicking on the visible portion of each one.

  • Clicking a toast will move it to the front.

  • The closing button will appear only on the toast that’s on top.

  • Closing any toast except the top one will move the remaining group of toasts downwards.

Image Removed

Image Added

Best practices

Use:

  • to display application-level messages, warnings, and errors.

  • when you need a relatively unobtrusive way to show messages, and to keep the rest of the page interactive.

...

Zeplin link

Screen thumbnail

https://zpl.io/2ynev9n

Image RemovedImage Added

Code

...