Skip to content

Commit 26885a8

Browse files
authored
refactor: searchbox flash issue and minor improvements (#8444)
* refactor: searchbox flash issue and minor improvements * chore: searchbox min height
1 parent 1a7effb commit 26885a8

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

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

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
.searchButton {
1212
@apply flex
13+
min-h-10
1314
w-full
1415
grow
1516
cursor-pointer
@@ -22,21 +23,30 @@
2223
bg-white
2324
p-1.5
2425
text-neutral-900
25-
duration-300
26-
hover:bg-neutral-100
27-
motion-safe:transition-colors
2826
dark:border-neutral-900
2927
dark:bg-neutral-950
30-
dark:text-neutral-200
31-
hover:dark:bg-neutral-900;
28+
dark:text-neutral-200;
29+
30+
&:hover {
31+
@apply bg-neutral-100
32+
motion-safe:transition-colors
33+
motion-safe:duration-300
34+
dark:bg-neutral-900;
35+
36+
.searchButtonShortcut {
37+
@apply bg-neutral-200
38+
dark:bg-neutral-800;
39+
}
40+
}
3241
}
3342

3443
.searchButtonContent {
3544
@apply relative
3645
flex
3746
flex-nowrap
3847
items-center
39-
gap-1
48+
gap-2
49+
pl-1
4050
text-sm;
4151

4252
svg {
@@ -45,13 +55,14 @@
4555
}
4656

4757
.searchButtonShortcut {
48-
@apply inline
58+
@apply hidden
4959
rounded-md
5060
bg-neutral-300
5161
px-2
5262
py-1
5363
text-sm
5464
text-neutral-800
65+
md:inline
5566
dark:bg-neutral-900
5667
dark:text-neutral-400;
5768
}

0 commit comments

Comments
 (0)