Notifications
About
Notifications are short messages meant to provide users with or request users for information. Riverty Design System offers several components that may be used as notification components. This notification pattern aims to help designers and developers choosing the right component for each notification instance and provide usage guidelines.
When to use
This notification pattern can be helpful when:
- You’re evaluating your notifications in general;
- You’re searching for the right component to implement;
- You’re looking for notification examples (see Best practices and Content).
How to use
There are different factors that can help determine the purpose of your notification, and therefore what component is suitable:
- Type: A notification can be passive or action-required. Passive notifications inform users in a way users don’t have to take any action. Action-required notifications inform users about an action to be taken before proceeding is possible.
- Trigger: A notification can be triggered by a system event (e.g., a system error, no connection) or as a result of users’ interaction.
- Importance: The need of users reading and/or interacting with the notification can be high, medium or low.
- Statuses: Some notification component come with specific statuses (Error, Warning, Info, Success).
- Behaviour: A notification component can behave modal or non-modal, which means that components with modal behaviour don’t allow for any interaction in the background until users have taken action.
- Usage: A notification can be global or contextual. Global notifications are not related to a user flow directly, contextual notifications are specifically related to where users are in their flow.
Dialog
- Type: Action-required
- Trigger: System event or user interaction
- Importance: High
- Statuses: None
- Behaviour: Modal
- Usage: For global notifications users need to interact with right away
Alert
- Type: Passive
- Trigger: System event only
- Importance: Medium
- Statuses: Info, Warning, Error
- Behaviour: Non-modal
- Usage: For global notifications that are informing users about something critical coming up
Floating toast
- Type: Passive
- Trigger: System event or user interaction
- Importance: Medium
- Statuses: Success, warning, error, info
- Timed: Yes, possible
- Behaviour: Non-modal
- Usage: For global notifications that are not crucial to users and therefore don’t have to interrupt their flow
Inline toast
- Type: Passive or action-required
- Trigger: System event or user interaction
- Importance: Medium
- Statuses: Success, warning, error, info
- Timed: No
- Behaviour: Non-modal
- Usage: For contextual notifications. Inline toasts with success and warning statuses shouldn’t require an action from users, whereas inline toasts with warning and error statuses may require an action
Popover
- Type: Passive or action required
- Trigger: System event or user interaction
- Importance: Low
- Statuses: None
- Behaviour: Non-modal
- Usage: For extensive contextual information that would support users, or prompts with contextual input or confirmation requests
Tooltip
- Type: Passive
- Trigger: User interaction only (users need to hover to see the tooltip)
- Importance: Low
- Statuses: None
- Behaviour: Non-modal
- Usage: For short contextual explanations about icons or labels. These explanations shouldn’t communicate anything crucial
Best practices
Resources
About
The structure, length and exact wordings of a notification message matter. This part of the notification pattern helps designers write clear notifications that help users perform specific actions and enhance their experience.
Structuring messages
Preferably, a notification message consists of a headline, text and Call To Action (CTA) if applicable.
While the structure of most types of notification messages is the same, the content of each headline, body text, and CTA varies depending on the type of message and what we need to communicate to users.
See a breakdown for different types of notifications below.
Confirmation messages
Confirmation messages help users make decisions.
Here are some guidelines to help you craft an effective confirmation message to support users in their decision making:
- Lead with the action you are asking users to confirm;
- Make sure users only have to confirm one action at a time;
- Use the same verbs in the headline, body, and CTA (e.g. don’t switch between “remove”, “delete” and “discard”).
Headline
- The headline should clearly refer to the action users are about to take;
- It should not start with “Are you sure…” but lead with the action itself.
Text
- Use the text to describe any important consequences of the action.
CTA
- Clarify the possible actions or decisions users can make in the CTA(s): instead of “Yes” or “No”, try e.g. “Keep file” or “Delete file”.
Error messages
Error messages help users make progress by helping them navigate a bump in the journey. Some general guidelines to follow when writing error messages:
- Avoid overly negative language;
- Do not blame or shame users;
- Be as clear and specific as possible about what happened and why…
- … but do not be too technical either;
- Always offer an action or solution.
Headline
- Use the headline to tell users in short (and clearly) what happened;
- No need to say “Oops!” or “Error!”
- If the notification is a result of a user interaction, it helps when the headline is written from a user’s perspective (e.g., “You are unable to pay with Riverty” instead of “Riverty rejected this request”).
Text
- Explanation of what happened or what’s needed;
- Explanation of why it happened;
- Explanation of how it can be solved: Make it easy for users to correct the error or get help;
- Provide some reassurance, if appropriate (or if space allows).
CTA
- Use the CTA to direct users to a solution.
Success messages
You can think of a success message as the end point of a journey. Success messages are a way to give users clarity or closure.
When writing success messages, the following things are important to take into account:
- Confirm that users completed an action successfully (and be specific about the action they completed).
Headline
- Let users know succinctly what they have successfully just done;
- If appropriate (i.e. for a friendlier tone), you can also thank them, e.g. “Thanks for your payment!” instead of “Payment successful”.
Text
- Give more context to what was successful, if necessary;
- Inform users about any next steps.
CTA
- Use the CTA to redirect users to a new point in the journey, if appropriate.
Text length for all types of messages
The optimal length for text line is 50-80 characters. The optimal sentence length for user comprehension is 8-15 words. Confirmation, error, and success are messages preferably 40 words maximum.