An alert is a notification of a system event, or a prompt to take action.
An alert is available in two types.
An alert always has a semantic meaning and uses colour to add visual meaning. The following states are available.
There are three sizes available, small, medium and large.
An alert is flexible and can appear anywhere on the page, depending on context.
An alert appears in response to a system event, or when a page has loaded.
Dismissible alerts may remain on-screen until dismissed by the user.
Elevated alerts can be vertically stacked.
Alert component can be used with external code libraries such as react-toastify.
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.
Critical alerts must be noticeable for all users and should remain until dismissed. Consider how an alert will affect the keyboard focus after it is closed, so that the user's journey is not negatively affected.
Use tab to move to close 'x'. To close notifications, press enter or space while the close 'x' has focus or use the esc key.
Voiceover: to close notifications, press enter or space while the close 'x' has focus, or use the esc key.
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.