Versions Compared

Key

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

Lead:  Liav Nadler

Status
colourYellow
titleongoing
 

Table of Contents


Description

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

A toast may be closed by the user or disappear automatically after few seconds (see below)

Image Removed

Format

A toast may contain the following elements:

  • A relevant icon (optional)Icon, e.g. confirmation, warning etc. A loaderor, in case of a continuous action, animated loader (optional)
  • Text, e.g. Item deleted
  • Action button (optional), e.g. Undo (optional)
  • Close button (optional, see below)

Types

TypeExampleUsagePositionBehaviourLeading ColorDisappears
Automatically
Info
Standard

Image Added

General information about the actionBottom of the screen, centeredAppearing from the bottomBlueAfter 5 seconds
Success
Confirmation

Image Added

Success message after completing an actionTop of the screen, centeredAppearing from the topGreenAfter 5 seconds
Warning
Failure to complete the actionTop of the screen, centeredAppearing from the top
RedRequires user action
OrangeOn clicking the X
Failure



YellowOn clicking the X

General guidelines

<<describes the component, use sub-section when they are relevant to the components>>

...

<<In general each component should be A11y complied,  please follow the 3 guidelines linked below. At the very least we should document that each component is in compliance with each of the 3>>

Focus management

While the toast is shown any current activity remains visible and interactive

Screen reader support 

<<Make sure the components support screen reader for content or behaviour where needed - see /wiki/spaces/UX/pages/308248620 >>

...