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 users or systems actionsa user action or system event. It contains simple feedback about the actionevent, while any current activity remains visible and interactive.

Types

Type

Usage

Example

Info

Information

General information related to an action.

Image Removed
Image Added

Success

Actions that were completed successfully.

Image Removed
Image Added

Warning

System warnings or actions that may cause a problem.

Image Removed
Image Added

Error

System errors or actions that have failed to complete.

Image Removed
Image Added

Continuous Action

An action that takes more than 3 seconds

(exact duration TBD)Image Removed

.

Image AddedImage Added

Usage &

...

Behavior

General guidelines

  • Toasts are triggered either by the user (e.g. refreshing a data table) or by the system (e.g. a server error).

  • Toasts appear from the bottom-left side of the screen with using a slide effect.

  • Error toasts stay on the screen until the user actively closes them warnings?.

  • Other toasts types of toast disappear automatically after a few seconds with a fade effect (the .

  • The user can still always close them manually)a toast manually, even if it will automatically close.

Structure

A toast may consist of

...

:

  • Either:

    • An an icon representing its the type of toast, such as a check mark or , in case of warning triangle, or

    • where there is a continuous action, an animated progress indicator Progress Indicator.

  • Text, including:

    • a title (optional) and .

    • the message body of the text.

  • A closing button (x).

  • A Cancel button, for continuous actions.

  • An expand button for longer messages (see Placement below).

Placement and Positioning

  • All toasts appear at 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. In case of Where there are more than 3 lines an expand button will appear, allowing the user to expand enlarge the toast.

Image Added

...

Image 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 that which has triggered the toast, and closes it. In this case, another information toast may appear, indicating that the action was cancelledcanceled.

  • 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).

Multiple Toasts

  • In case toasts appeared before previous ones were closed or disappearedWhere a new toast appears before a previous one has been closed, the page will show multiple toasts:.

Condition

Behaviour

Behavior

Design

In case the

The new toast is not an error toast (i.e. info

toast,

or success

toast

toasts etc.)

it

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

Image Removed

Image Added

In case the

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

it

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

Image RemovedIn case the

The new toast is an additional error toast (

not the first one

there are other error toasts already on the page).

it will appear behind

The new error toast will be stacked behind the existing error toasts. It should appear underneath and slightly above the previous error

toast

toasts, showing the first line of text. In this case:

-
  • The user can switch between toasts by clicking on the visible portion of

it
  • each one.

-
  • Clicking a toast will move it to the front.

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

front
  • top.

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

Image Removed

Image Added

Best practices

Use toasts:

  • 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.

Don’t use toasts:

  • for critical messages . In this case consider using → use Message Popups.

General

  • Keep the text short and informative.

  • In case of For warning or failure error toasts, offer the user a way to recover.

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Design

Zeplin link

Screen thumbnail

<<Zeplin Link>>

<<Screen with 200 width>>

https://zpl.io/2ynev9n

Image Added

Code

...