Change log
Components
Tooltip
- Overview
- Usage
Principles​
The tooltip can only contain text and should not be used to hide important information.
Behavior​
Tooltips appear on hover and focus.
By default, tooltips have a 200ms entry delay when hovering over an object. This is to ensure that the UI isn't constantly showing tooltips when a user is moving their mouse over the page. The default exit delay is set to 100ms.
When navigating by keyboard, tooltips appear immediately on focus and disappear also without delay when navigating away from the element with the tooltip.
Trigger examples​
Size​
The maximum width of a tooltip is set to 240px. Longer content is wrapped to multiple lines.
Placement​
Tooltips should always be placed in a way that does not cover related content that is essential to the user’s tasks. Tooltips should not bleed off page or appear behind other content.
For tooltips that are inline with other text, like a definition tooltip, do not obstruct words to the left and right of the trigger word.
Usage guidelines​
Content​
Keep the content of the tooltip as clear and concise as possible.
Avoid restating visible UI text.
Placement​
For tooltips that are inline with other text, like a definition tooltip, do not obstruct words to the left and right of the trigger word.
Interactive elements​
Avoid placing interactive elements, such as buttons and links, inside tooltips.