A badge shows a numerical value or a status descriptor for user interface elements. It draws attention to notifications or important interface elements, showing additional information to users on interaction.
Attach to components which require additional visual information.
Never use a badge on its own.
Badges have three types: filled, subtle or outlined.
A badge always has a semantic meaning and uses colour to add visual meaning. The following states are available:
Badges can be micro, extra-small, small, medium (default) or large.
Badges provide further information and should be visibly attached to the related element.
A numerical value or icon is used in a badge to display simple contextual information, with colour used to convey additional visual meaning.
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.
Colour alone isn’t enough to communicate effectively with all users. Provide text alternatives for any non-text content, and include context. For example, the badge should read '10 unread emails' instead of just '10'.
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.