Commit c19e70c
improvement(fairies): improve fairy button hover UX (tldraw#7222)
Improves fairy button UX:
- Shows tooltip on hover for fairy toggle button
- Hides plus button until the fairy list is hovered (on devices with
hover support)
### Change type
- [x] `improvement`
### Test plan
1. Open a file in the editor with the fairy HUD visible
2. Hover over the fairy list to see the plus button appear
3. Hover over a fairy toggle button to see the tooltip
- [ ] Unit tests
- [ ] End to end tests
### Release notes
- Improved fairy button UX with hover states.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Show tooltip on hover for fairy toggle button and fade-in the plus
button only when the fairy list is hovered on hover-capable devices.
>
> - **Styles (fairy.css)**:
> - **Toggle button**: Show `::after` on hover to enable tooltip
visibility.
> - **Plus button**: On `@media (hover: hover)`, default `opacity: 0`
with transition; reveal (`opacity: 1`) when `.fairy-list` is hovered.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4bca1ce. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 949fdc7 commit c19e70c
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
310 | 327 | | |
311 | 328 | | |
312 | 329 | | |
| |||
0 commit comments