Skip to main content

Color

ClassPropertySCSSHEX
.bx--tooltip__labeltext color$text-01#152935
svgfill$brand-01#3d70b2
.bx--tooltip--shownbackground-color$ui-01#ffffff
.bx--tooltipcolor$text-01#152935
.bx--tooltipborder$ui-03#dfe3e6
.bx--tooltip__trigger pathfill$brand-01#3d70b2
.bx--tooltip--definition__bottom p
.bx--tooltip--definition__top p
.bx--tooltip--icon__top::after
.bx--tooltip--icon__bottom::after
text color$inverse-01#ffffff
.bx--tooltip--definition__bottom
.bx--tooltip--definition__top
.bx--tooltip--icon__top::after
.bx--tooltip--icon__bottom::after
background-color$inverse-02#272d33

Example of closed and open states for a Tooltip

Typography

Tooltip labels and text should be set in sentence case.

PropertyFont-size (px/rem)Font-weightType styles
.bx--tooltip__label16 / 1Semi-Bold / 600.bx--type-epsilon
.bx--tooltip p14 / 0.875Normal / 400-
.bx--tooltip--definition__top p
.bx--tooltip--icon__top:before
12 / 0.75Normal / 400.bx--type-caption

Layer

ClassLayer, ElevationBox-shadow
.bx--tooltip
.bx--tooltip--icon__top:before
.bx--tooltip--icon__bottom:before
.bx--tooltip--definition__bottom
.bx--tooltip--definition__top
Overlay, 80 4px 8px 0 rgba(0,0,0,0.10);

Structure

All Tooltip types have a varying height based on the amount of content they contain.

Interactive Tooltip

ClassPropertypx / remSpacing token
.bx--tooltipmax-width240 / 15-
.bx--tooltip__trigger svgheight, width16 / 1-
.bx--tooltip__triggermargin-left8 / 0.5$spacing-xs
.bx--tooltippadding16 / 1$spacing-md
.bx--tooltipmargin-top8 / 0.5$spacing-2xs

Structure and spacing measurements for an Interactive Tooltip | px / rem

Definition Tooltip

ClassPropertypx / remSpacing token
.bx--tooltip--definition__bottom
.bx--tooltip--definition__top
max-width176 / 11-
.bx--tooltip--definition__bottom
.bx--tooltip--definition__top
margin-top12 / 0.75$spacing-sm
.bx--tooltip--definition__bottom
.bx--tooltip--definition__top
padding8 / 0.5$spacing-xs
.bx--tooltip--definition .bx--tooltip__triggerborder-bottom2px-

Structure and spacing measurements for a Definition Tooltip | px / rem

Icon Tooltip

ClassPropertypx / remSpacing token
.bx--tooltip--icon__top:before
.bx--tooltip--icon__bottom:before
max-width176 / 11-
.bx--tooltip--icon__top:before
.bx--tooltip--icon__bottom:before
padding4 / 0.25$spacing-2xs

Structure and spacing measurements for an Icon Tooltip | px / rem

Placement

Tooltips should be placed below the Tooltip icon unless it is within the height of the Tooltip box plus 16px / 1rem of the bottom of the page. In that instance, the Tooltip should appear above the icon or defined word. On mobile, Tooltips can only appear below the Tooltip icon.

Placement examples for a Tooltip