- Use one or two words.
Tooltip - Icon
A tooltip - icon is a contextual message that appears when users interact with an icon or icon button, providing specific context.
Dos and Don’ts
- If additional information needs to be displayed to the user, use the Tooltip instead.
Anatomy
- Body copy: Describes the function or action in one or two words.
Variants
Default
Used on light backgrounds or containers.
Inverse
Used on dark backgrounds or containers. Ensure the inverse tooltip is entirely within the dark container and does not overlap the light background.
Sizes
Width
Fixed
The container width is fixed to fit the content and retains 12px left and right padding.
Placement
Offset
By default, the icon tooltip has a 4px offset between the pointer and the associated UI element. The offset can be overridden if needed.
Position and alignment
A tooltip can open at the top, bottom, left or right, with alignment to the start, centre or end of the content, depending on the position of the UI trigger on the screen. For example, if the trigger appears near the edge of the interface, the tooltip may open from a different position or with a different alignment to avoid cropping, bleeding off the page or covering important information. By default, our tooltips open at the bottom.
Bottom
Top
Left and right
Inverse tooltip
If an inverse tooltip is required, ensure that it is entirely within the dark container and does not overlap with the light background to avoid visual issues.
Behaviours
Trigger
A trigger can be any UI element, such as a standalone icon or icon button that has no label. Tooltips are triggered by hovering (on desktop) over a trigger.
Interactions
Close
The tooltip disappears when the user moves the pointer away from the associated UI element.
Content
- All content should use sentence case.
- Tooltip messages should only be one or two words.
- Do not include crucial information. Important information should always be visible, not hidden in tooltips.
Examples
LTR examples
Here are some examples of the component in left-to-right context:
RTL examples
Here are some examples of the component in right-to-left context: