Notifications deliver information in different ways according to the level of importance. These range from micro interactions to system-wide messages.
A badge shows specific information about an item, action, or state. It appears as a small icon or a piece of text on top of another element, such as an icon, a button, or a thumbnail.
Only use badge notifications for important, relevant and actionable information
Ensure that the badge count accurately reflects the number of unread items or pending tasks
Provide an option to disable badge notifications so that users can control them.
Banner notifications appear at the top or bottom of the screen and can persist until the user dismisses them. They are commonly used for non-urgent messages or updates.
Don’t interrupt users with irrelevant or non-essential information that may disrupt their focus.
Banner notifications should not block important content or obstruct user interactions.
Avoid showing banner notifications at critical moments or during user interactions, as they can disrupt the user's workflow.
Avoid using banner notifications for complex or lengthy information that may not fit well within a limited space.
Dialog notifications provide important information to prompt users for a response or confirmation before they can be dismissed. Read more about Dialog patterns.
An alert shows warnings, critical errors, success messages or other important information to users.
A modal overlays a page and focuses user attention on a task or information.
A popconfirm prompts users to confirm or cancel an action.
Toast notifications are temporary notifications that appear on screens to show brief messages or provide non-critical feedback on user actions and system events.
Do not overuse toast notifications, as they can become annoying and interrupt the user experience if they appear too frequently.
Write content that is brief and informative.
Position the toast notification where it is visible but does not obstruct the user’s workflow.
Ensure that toast notifications are visible long enough for users to have time to read. Provide an obvious dismiss button or close icon.
Avoid showing toast notifications during critical moments that require users’ attention.
Shell DS components are programmatically determinable with appropriate semantic markup and are designed to meet colour contrast requirements. If you’re not using Shell DS code, you will need to cover the accessibility considerations for each component in this pattern.
Ensure that all interactive elements within the notification are accessible through keyboard navigation.
Provide alternative text for non-text elements inside the notification, for example, icons and images for screen reader users.
Use semantic HTML elements and attributes to ensure that notifications are properly interpreted by assistive technologies.
Ensure the colour contrast is 4:5:1 between text and background within the notification, in accordance with WCAG guidelines.
Every effort has been made to ensure that the Shell Design System follows accessibility best practice.
The Shell DS React framework incorporates keyboard operation to support the widest variety of assistive technologies and devices. For any future frameworks other than React, accessibility will need to be reviewed.
Help us to help you by contacting the Accessibility team for support and information regarding any questions relating to accessibility.
Is this page useful for you?
Your feedback helps to improve our documentation.