- Docs
- Components
- Overlays
Tooltip
A short label for a control, most often an icon-only button. Never essential, never interactive.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<div role="tooltip">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| TabTab | Focus on its trigger opens it at once. |
| Escape | Closes it. |
02
Behaviour
- Role
- role="tooltip", describing its trigger through aria-describedby while it's open.
- No repeats
- When its text only repeats the trigger's name, it isn't linked, so the name isn't read twice.
- Touch
- It doesn't appear on touch: never put anything only there.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Focus: where it lands as it opens, and where it returns as it closes
- Forced colours, reduced motion and right to left