Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 1205434

Browse files
committed
fix: dont use brand focus styles on dropdown and popover
1 parent 0ef14c5 commit 1205434

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/lib/theme/defaultTheme.ts

+16-6
Original file line numberDiff line numberDiff line change
@@ -1167,15 +1167,15 @@ export default {
11671167
// root:
11681168
trigger: `
11691169
flex
1170+
11701171
border-none
11711172
rounded
11721173
bg-transparent p-0
1173-
11741174
outline-none
11751175
outline-offset-1
11761176
transition-all
11771177
focus:outline-4
1178-
focus:outline-brand-600
1178+
focus:outline-scale-600
11791179
`,
11801180
item_nested: `
11811181
border-none
@@ -1190,11 +1190,12 @@ export default {
11901190
border border-scale-300 dark:border-scale-500
11911191
rounded
11921192
shadow-lg
1193+
py-1.5
1194+
11931195
origin-dropdown
11941196
data-open:animate-dropdown-content-show
11951197
data-closed:animate-dropdown-content-hide
11961198
min-w-fit
1197-
py-1.5
11981199
`,
11991200
size: {
12001201
tiny: `w-40`,
@@ -1258,9 +1259,18 @@ export default {
12581259

12591260
popover: {
12601261
trigger: `
1261-
border-none bg-transparent
1262-
p-0
1263-
focus:ring-0
1262+
flex
1263+
border-none
1264+
1265+
rounded
1266+
bg-transparent
1267+
p-0
1268+
outline-none
1269+
outline-offset-1
1270+
transition-all
1271+
focus:outline-4
1272+
focus:outline-scale-600
1273+
12641274
`,
12651275
content: `
12661276
bg-scale-100 dark:bg-scale-300

0 commit comments

Comments
 (0)