Tooltip

A short black label with white type that names a control. It shows on hover and on keyboard focus.

Statement PDF

Hover or tab to each one. The icon button’s tooltip lines up with its right edge, since icon buttons sit at the end of a row; the others center under or over their control.

On black

Positions

The tail points at the control from 4px away. Below or above, the tooltip lines up at the start, middle or end; left or right, it sits beside the control, centered on it. Shown open here.

Parts

PartMarkupLook
Tooltip.sys-tooltip with data-tip="…" on the controlBlack block, 12px white caps, 6px from the control; white with black caps on black
On an icon button.sys-icon-btn with data-tip; no extra class. Set --icon-size if the glyph isn’t 24pxLines up with the button’s right edge; the tail points at the center of the icon, 4px from the glyph
TailDrawn by the tooltip6px triangle in the tooltip’s color; its tip always 4px from the control
Sidebelow (default), .sys-tooltip--above, .sys-tooltip--left, .sys-tooltip--rightWhich side of the control the tooltip and tail sit on
Along the edgemiddle (default), .sys-tooltip--start, .sys-tooltip--endAbove or below only. At the start or end the tooltip lines up with that edge and the tail’s center sits 22px in, the center of a 44px icon button

Stipulations