Skip to content
English
Don't know what it's called52 / 71

Tooltip or popover

What it's calledTooltippopoverinfo bubbleGlossary

What goes wrong

A tooltip stuffed with a link and a button vanishes as the pointer moves towards them, and it never opens on a touch screen.

The fix

Keep the tooltip to one short line; put anything people can click in a popover that opens on click and stays open.

Tell your AI

Keep tooltips to one line of about 60 characters at most, var(--ds-surface) text at var(--ds-font-size-xs) (12px) on var(--ds-text), shown after about 400ms of hover; move links and buttons into a popover that opens on click, a var(--ds-surface) card with var(--ds-radius-lg) (20px) corners and box-shadow: var(--ds-shadow-lg) that closes only on Escape or a click outside, as the LayQ components tooltip (/registry/v1/controls-tooltip.json) and popover (/registry/v1/controls-popover.json) do.

  • --ds-surface
  • --ds-font-size-xs12px
  • --ds-text
  • --ds-radius-lg20px
  • --ds-shadow-lg
Why AI-generated UIs all look the same: 12 rules that fix it

Savings rate

23%of income, March

4 ptsGoal 25%

It vanishes before the pointer reaches the link