Feedback
Tooltip
A tooltip is a small ink label that names an icon-only control when the person points at it or reaches it with the keyboard.
In kanso-ui as Tooltip
Anatomy
- Trigger: the icon button (
k-iconbtn). - Container:
ink,radius-sm,shadow-2, up to 240 px wide. - Text: 12 px, one line, sentence case, no full stop.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-tooltip | max-width | 240px |
padding | 6px 10px | |
border-radius | 8px (radius-sm) | |
box-shadow | shadow-2 | |
font | 500 12px/16px font-plain |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
ink | --kui-color-ink | #1a1a1a | #ececec |
on-ink | --kui-color-on-ink | #fafafa | #121212 |
shadow-2 | --kui-shadow-kanso-2 | 0px 2px 6px 0px rgba(0, 0, 0, 0.08), 0px 8px 20px 0px rgba(0, 0, 0, 0.1) | 0px 4px 16px 0px rgba(0, 0, 0, 0.6) |
radius-sm | --kui-radius-kanso-sm | 8px | 8px |
space-xs | --kui-spacing-kanso-xs | 4px | 4px |
--k-motion-short | its own value | — | — |
--k-ease-standard | its own value | — | — |