Skip to content

Commit baa0578

Browse files
fix: add hover effect to sidebar links (#7893)
1 parent 6ce9ac9 commit baa0578

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

packages/ui-components/Containers/Sidebar/SidebarItem/index.module.css

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,74 @@
88
w-full
99
items-center
1010
overflow-hidden
11+
rounded-md
1112
text-sm
1213
text-neutral-800
14+
transition-all
15+
duration-200
16+
ease-in-out
1317
dark:text-neutral-200;
1418

19+
margin-bottom: 1px;
20+
21+
&:not(.active):hover {
22+
@apply bg-neutral-100
23+
text-neutral-900
24+
shadow-sm
25+
dark:bg-neutral-800
26+
dark:text-neutral-100;
27+
28+
.icon {
29+
@apply scale-110
30+
text-green-600
31+
dark:text-green-400;
32+
}
33+
34+
.label {
35+
@apply text-neutral-900
36+
dark:text-neutral-100;
37+
}
38+
}
39+
1540
.label {
1641
@apply font-regular
1742
p-2
18-
text-sm;
43+
text-sm
44+
transition-colors
45+
duration-200
46+
ease-in-out;
1947
}
2048

2149
.progressionIcon {
2250
@apply shrink-0
2351
fill-neutral-200
2452
stroke-white
2553
stroke-[4]
54+
transition-colors
55+
duration-200
56+
ease-in-out
2657
dark:fill-neutral-800
2758
dark:stroke-neutral-950;
2859
}
2960

3061
.icon {
3162
@apply size-3
3263
text-neutral-500
64+
transition-all
65+
duration-200
66+
ease-in-out
3367
dark:text-neutral-200;
3468
}
3569

3670
&.progression {
3771
.label {
3872
@apply p-1;
3973
}
74+
75+
&:not(.active):hover {
76+
@apply bg-neutral-50
77+
dark:bg-neutral-900;
78+
}
4079
}
4180

4281
&.active {

0 commit comments

Comments
 (0)