File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
59
59
}, {
60
60
label: ' Neutral' ,
61
61
slot: ' chip' ,
62
- chip: appConfig .ui .colors .neutral ,
62
+ chip: appConfig .ui .colors .neutral === ' neutral ' ? ' old-neutral ' : appConfig . ui . colors . neutral ,
63
63
content: {
64
64
align: ' end' ,
65
65
collisionPadding: 16
66
66
},
67
67
children: neutrals .map (color => ({
68
68
label: color ,
69
- chip: color ,
69
+ chip: color === ' neutral ' ? ' old-neutral ' : color ,
70
70
slot: ' chip' ,
71
71
type: ' checkbox' ,
72
72
checked: appConfig .ui .colors .neutral === color ,
@@ -173,8 +173,11 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
173
173
174
174
<template #chip-leading =" { item } " >
175
175
<span
176
- :style =" { '--chip': `var(--color-${(item as any).chip}-400)` }"
177
- class =" ms-0.5 size-2 rounded-full bg-(--chip)"
176
+ :style =" {
177
+ '--chip-light': `var(--color-${(item as any).chip}-500)`,
178
+ '--chip-dark': `var(--color-${(item as any).chip}-400)`
179
+ }"
180
+ class =" ms-0.5 size-2 rounded-full bg-(--chip-light) dark:bg-(--chip-dark)"
178
181
/>
179
182
</template >
180
183
</UDropdownMenu >
You can’t perform that action at this time.
0 commit comments