Toggletip
The following page documents visual specifications such as color, typography, structure, and size.
Color
A toggletip has two states: open and closed. The open state occurs when a user clicks on or enter the trigger button, while the closed state means the toggletip is hidden.
Element | Property | Color token |
---|---|---|
Trigger button | svg |
|
Container | background-color |
|
Text | color |
|
Interactive states
State | Element | Property | Color token |
---|---|---|---|
Open | trigger button | svg |
|
Open | trigger button | border |
|

Toggletip in the closed and open states with mouse and keyboard interactions
Typography
Element | Font-size (px-rem) | Font-weight | Type token |
---|---|---|---|
Body text | 14px / 0.875rem | Regular / 400 |
|
Structure
All tooltip types have a varying height based on the amount of content they contain.
Toggletip
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | max-width | 288 / 18 | — |
padding | 16 / 1 |
| |
margin-top | 8 / 0.5 |
| |
Trigger icon | height, width | 16 / 1 | — |
margin-left | 8 / 0.5 |
|

Structure and spacing measurements for toggletip | px / rem
Placement
Toggletip directions by default are set to auto. Upon opening, toggletips can detect the edges of the browser to properly be placed in view so the container does not get cutoff. Toggletips can instead use specific directions and may be positioned top, right, bottom, or left to the trigger item. Toggletips should be placed at least 16px / 1rem off of the bottom of the page and not bleed off page or behind other content. On mobile, toggletips can only appear below the toggletip UI trigger.

Placement examples for toggletip
Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.
Show less