Skip to content

Commit c19e70c

Browse files
steveruizokclaude
andauthored
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

File tree

apps/dotcom/client/src/tla/styles/fairy.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
display: none;
115115
}
116116

117+
.fairy-toggle-button:hover::after {
118+
display: block;
119+
}
120+
117121
.fairy-toggle-button[data-is-sleeping='true'] {
118122
opacity: 0.45;
119123
}
@@ -307,6 +311,19 @@
307311
color: white;
308312
}
309313

314+
@media (hover: hover) {
315+
.fairy-plus-button {
316+
opacity: 0;
317+
transition:
318+
background-color 0.1s ease,
319+
opacity 0.12s ease;
320+
transition-delay: 0.12s;
321+
}
322+
.fairy-list:hover .fairy-plus-button {
323+
opacity: 1;
324+
}
325+
}
326+
310327
.fairy-button-project-indicator {
311328
position: absolute;
312329
top: 2px;

0 commit comments

Comments
 (0)