Notifications

Overview

Definition

Notifications are messages that tell a customer (or user) system-based or relative information.

We have several variations

  • Informational
  • Success
  • Warning
  • Error

in two sizes

  • mobile
  • desktop

Guidelines

Notifications should be used to help people understand the context around their actions. This could be to let people know they completed a task, help fix an issue, or provide information to upcoming changes. 

These should be used sparingly since too many can cause people to ignore them. We don’t want to induce banner blindness. 

Variations

VariantPurpose
InformationalThese can be used when ALEX needs to inform people of information that may not be related to the current task.
SuccessWhen a task has been completed as expected.
WarningThese tell people that there may be unexpected or undesirable results if they continue.
ErrorThere are certain actions that will need to be addressed before a customer / user can continue. 

Content

  • Be brief and descriptive, but do not use technical jargon for a general audience.
  • Let people know of any actions they can take to fix the issue.
  • Use the headline if extra context is needed, e.g. you want to emphasize something about the message.

Visual

Action options

  • Without buttons
    If the message should not be dismissible 
  • One button
    A single action, most commonly used to clear the message. Either the Secondary or Tertiary button option is available. Try using the Tertiary since it has less visual noise and the action is not very important.
  • Two buttons
    If there are multiple actions someone can take use a Secondary and a Tertiary button, with secondary being the more important action

Headline

  • Can be hidden if additional context is not needed

With headline (most visual noise to least)

Without headline (most visual noise to least)

Don’t

Don’t remove the icons. Icons should stay visible because color should not be the only indicator of the notification type.

Specs

The border radius, icon size, type sizes, and buttons stay consistent between the different notification types. Only the background and icon colors change between variants.

Variation specific

TypeBackground colorIcon color
Informational$blue-100$blue-800
Success$green-100$green-800
Error$red-100$red-600
Warning$orange-100$orange-600

Consistent between all

HeightFluid, depends on how much text there is and if the headline is visible
Border radius8 px
Icon size24 px
Icon alignmentTop left
Icon spacing12 px
Headline sizeheader-paragraph-small
Headline spacing4 px
Body copy sizebody-small-500
ButtonsSmall secondary and / or tertiary (link out to Button page)
Button spacing8 px

Desktop

Padding16px 24px 16px 16px
Min-width576px, anything smaller should be Mobile
Max-widthContainer size

Mobile

Padding16 px (1 rem)
Max-width575px, anything larger should be full-width

Accessibility

  • Color should not be the only way to represent variation. That’s why all versions have the icon in addition to the message.
  • While the backgrounds do not pass AA standard on a white or light background; the icons, text, and buttons do pass.
  • Keyboard accessible.