Skip to content

Commit da79cb9

Browse files
committed
refactor: searchbox flash issue and minor improvements
1 parent f59b46c commit da79cb9

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

packages/ui-components/src/Common/Search/Modal/index.module.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,30 @@
2222
bg-white
2323
p-1.5
2424
text-neutral-900
25-
duration-300
26-
hover:bg-neutral-100
27-
motion-safe:transition-colors
2825
dark:border-neutral-900
2926
dark:bg-neutral-950
30-
dark:text-neutral-200
31-
hover:dark:bg-neutral-900;
27+
dark:text-neutral-200;
28+
29+
&:hover {
30+
@apply bg-neutral-100
31+
motion-safe:transition-colors
32+
motion-safe:duration-300
33+
dark:bg-neutral-900;
34+
35+
.searchButtonShortcut {
36+
@apply bg-neutral-200
37+
dark:bg-neutral-800;
38+
}
39+
}
3240
}
3341

3442
.searchButtonContent {
3543
@apply relative
3644
flex
3745
flex-nowrap
3846
items-center
39-
gap-1
47+
gap-2
48+
pl-1
4049
text-sm;
4150

4251
svg {
@@ -45,13 +54,14 @@
4554
}
4655

4756
.searchButtonShortcut {
48-
@apply inline
57+
@apply hidden
4958
rounded-md
5059
bg-neutral-300
5160
px-2
5261
py-1
5362
text-sm
5463
text-neutral-800
64+
md:inline
5565
dark:bg-neutral-900
5666
dark:text-neutral-400;
5767
}

0 commit comments

Comments
 (0)