Skip to content

Commit 998c8bf

Browse files
iamdavidhillAiden Cline
authored andcommitted
tweak(ui): stabilize collapsible chevron hover
1 parent d2d7a37 commit 998c8bf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/ui/src/components/collapsible.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@
2626
[data-slot="collapsible-arrow"] {
2727
opacity: 0;
2828
transition: opacity 0.15s ease;
29+
will-change: opacity;
30+
transform: translateZ(0);
2931
}
3032

3133
[data-slot="collapsible-arrow-icon"] {
3234
display: inline-flex;
3335
color: var(--icon-weaker);
34-
transform: rotate(-90deg);
36+
transform: translateZ(0) rotate(-90deg);
3537
transition: transform 0.15s ease;
38+
will-change: transform;
3639
}
3740

3841
&:hover [data-slot="collapsible-arrow"] {
@@ -74,7 +77,7 @@
7477
}
7578

7679
[data-slot="collapsible-arrow-icon"] {
77-
transform: rotate(0deg);
80+
transform: translateZ(0) rotate(0deg);
7881
}
7982
}
8083

0 commit comments

Comments
 (0)