Alerts

System and action messages for the user

UsageOverview

Providing clear communication and feedback to users is crucial for building confidence and trust.

How to use

Notifications are disruptive so limit the usage of this pattern whenever possible and when necessary, make their purpose immediately apparent to the user and with a clear path to dismissal.

User for:

Don't use:


AnatomyWriting & Tone

Avoid long messages. The average user can read about 19 characters per second. Therefore, a 200 character limit is recommended. A noun + verb pattern is suggested, so as to reduce cognitive load

Use “we,” “our” and “you” to create a sense that we are speaking directly to our customers.

Elements
  1. Accent — the color of the notification;
  2. Icon — the icon of the notification;
  3. Label — the text that describes the content of a single line notification or the title of a multiline notification;
  4. Action — an optional action for the user to follow;
  5. Dismiss — the dismiss button.

Variation RulesTypes
Type Priority Context Example
Banner High priority Critical system-level "Your account will expire in 5 days. Please update your billing information."
Inline Medium priority Critical task-level "This product has been rejected, please review it to fix the issue."
Toast Low priority Non-critical task and system-level Successfully: create, save, duplicate, edit, delete, share an item or send a message.
Banner

Position

Banner notifications appear at the absolute top of the screen and shift the content below.

Inline

Position

Inline notifications appear in context to the content or action triggering it. For notifications linked to plain text or icons use a tooltip instead.

Toast

Position

Toast notifications appear on a layer above the page content.

Timing

Ideally, the toast should be timed, based on the length of the text and its contents. If such implementation is not possible, keep it for:

If more than one toast shows within the timespan, the most recent one will show below in chronological order and slide up once the top one expires or is closed.

Toasts disappear if a user navigates away as it will no longer be relevant to the new page content displayed.

Color Usage

Notifications fall into the feedback category of our color system.


BehaviorTrigger & Dismissal

Notifications are triggered and dismissed according to their type

Type Trigger example Dismiss
Banner "Your account will expire in 5 days. Please update your billing information." Does not expire during the browser session. It will persist in the area of the screen until the user takes an action to close it.
Inline Confirmations, alerts, and acknowledgments that require minimal user interaction. Does not expire during the browser session. It will persist in the area of the screen until the user takes an action to close it or navigates away from the page.
Toast Successfully: create, save, duplicate, edit, delete, share an item or send a message. Auto-expiring, non-disruptive, and dismissible. Position and timing
Tooltips

As with all icon buttons, a tooltip should be used on a notification's dismiss button


Best Practices

Use an alert to implement notices of success or failure for a persistence action (i.e. form submit). On a full-page view, these notices should appear in a consistent position from page to page; for example, a styled box directly beneath the main page title or the page lead text. If an alert message appears within a modal window, the alert should be prepended as the first element of the modal content (body), in general (though specific layouts may require a modified implementation).

Where the alert is a direct result of an action by the user, the alert should have a dismissible option (close button). In other circumstances, alerts may be used to provide help text or other notices, and these elements should not include a close button.

Accessibility
Related Components
Feedback

We would like to get your feedback. Tell us how you use this component in your projects and how we can improve it.

StyleInline alertsMaster Brand

ULTRUS

Toasts

Banner alerts

Banners
Inline
Toasts