Tag - Usage
Basic Guidelines
The Tag component serves as a visual indicator of a product or service’s status. Each colour signals a different level of urgency or opportunity. Tags are not interactive.
Icons are optional and can be used to can enhance the tone of the message.
The Tag has a maximum width of 200px, regardless of the viewport. If the label is too long, the text will be truncated with an ellipsis.
Variants Usage
Each tag colour signals a different level of urgency or opportunity. Do not change the colour of the Tags.
Content Guidance
- The label within the Tag should be direct and informative.
- Keep it brief, under two or three words (about 20 characters), so it's easy to read at a glance.
- Only use adjectives (descriptive words). Avoid beginning with verbs (action words), as it could be interpreted as a call-to-action which might make the user think the Tag is clickable.
Alignment
Position the Tag in close proximity to the object it refers to.
Icon Usage
Dont change the icon size.
Since the icon is very small, only use easily recognisable and familiar icons to enhance the label.
Notes on Accessibility
Tags increase the cognitive load on screen. Use them in moderation.
The minimum required contrast ratio to hit the AA standard for elements with small text is 4.5. Brightness and saturation levels of the background colours have been adjusted to reach the required ratio.
4.51:1
4.58:1
7.92:1