Skip to content

Commit ba1ee3a

Browse files
authored
fix: select2 focus (#1248)
1 parent 8fa21d4 commit ba1ee3a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/styles.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@source inline("{-,}m{t,r,b,l,x,y,}-{0..4} {-,}p{t,r,b,l,x,y,}-{0..4}");
1010
@source inline("{md:,lg:,}border-{0,2} {md:,lg:,}border-{t,r,b,l}-{0,2}");
1111
@source inline("{hover:,dark:,}bg-primary-{50,{100..900..100},950}");
12-
@source inline("{hover:,dark:,}border-base-{50,{100..900..100},950}");
12+
@source inline("{hover:,dark:,}border-base-{50,{100..900..100},950} {hover:,dark:,}border-transparent");
1313
@source inline("{hover:,dark:,}bg-base-{50,{100..900..100},950}");
1414
@source inline("{md:,lg:,}w-{1/2,1/3,2/3,1/4,2/4,3/4,1/5,2/5,3/5,4/5}");
1515
@source inline("{md:,lg:,}gap-{0.5,{1..12}}");
@@ -349,6 +349,14 @@ h3 span:nth-child(3) {
349349
@apply bg-white border border-base-200 max-w-2xl min-h-[38px]! relative rounded-default shadow-xs w-full! dark:bg-base-900 dark:border-base-700;
350350
}
351351

352+
.select2-selection {
353+
@apply outline-none;
354+
}
355+
356+
.select2.select2-container.select2-container--focus{
357+
@apply outline-2 outline-primary-600 -outline-offset-2;
358+
}
359+
352360
.errors .select2.select2-container {
353361
@apply border-red-600;
354362
}

0 commit comments

Comments
 (0)