Commit d7db7d7
authored
Upgrade to @microbit/ui@0.1.0-alpha.22 (#1252)
Tooltips now wait ~1.5s before their first appearance, react-aria's warmup,
which the library had been overriding to 0 for Chakra parity. The wait is per
bout of interest rather than per control — a global warm flag opens every
tooltip after the first instantly — so the toolbar no longer fires a tooltip at
a pointer merely crossing New, Send, Save and Reset, and the drag hints on code
blocks and API signatures stay out of the way while reading.
ProjectNameEditable opts out with delay={0}: its trigger is a pencil and
nothing else, so the tooltip is the only visible explanation and a wait reads as
broken. That is the rule for the whole family — pass 0 where the tooltip is the
label, leave the default where the control already says what it is.
Tooltips also linger ~500ms after mouse-out rather than closing instantly, which
is what lets the pointer move onto one to read it (WCAG 1.4.13).1 parent a532547 commit d7db7d7
3 files changed
Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
0 commit comments