@@ -24,7 +24,7 @@ const optionsLeft = computed(() => rootPos.left.value)
24
24
<template >
25
25
<div ref =" rootEl" class =" inline-block" >
26
26
<HListbox v-slot =" { open }" v-model =" selectedOp" >
27
- <HListboxButton class =" w-full px-2 py-0.5 rounded-md flex justify-between items-center space-x-4 bg-white whitespace-nowrap" :class =" { 'ring ring-purple-100': ring }" >
27
+ <HListboxButton class =" w-full px-2 py-0.5 rounded-md flex justify-between items-center space-x-4 bg-white whitespace-nowrap dark:bg-gray-600 dark:text-gray-200 " :class =" { 'ring ring-purple-100': ring }" >
28
28
<div >{{ selectedOp.name }}</div >
29
29
<div
30
30
class =" i-uil:angle-down w-5 h-5 transition-transform" :class =" { 'rotate-180': open }"
@@ -34,7 +34,7 @@ const optionsLeft = computed(() => rootPos.left.value)
34
34
<Teleport to =" body" >
35
35
<div
36
36
ref =" optionsEl"
37
- class =" z-51 absolute -mx-1 pt-1 pb-2 px-1 overflow-hidden"
37
+ class =" z-51 absolute -mx-1 pt-1 pb-2 px-1 overflow-hidden "
38
38
:style =" {
39
39
'top': `${optionsTop}px`,
40
40
'left': `${optionsLeft}px`,
@@ -49,7 +49,7 @@ const optionsLeft = computed(() => rootPos.left.value)
49
49
leave-from-class =" translate-y-0 opacity-100"
50
50
leave-to-class =" -translate-y-2/3 opacity-0"
51
51
>
52
- <HListboxOptions class =" py-1 w-full rounded-md shadow bg-white" >
52
+ <HListboxOptions class =" py-1 w-full rounded-md shadow bg-white dark:bg-gray-600 " >
53
53
<HListboxOption
54
54
v-for =" op in ops"
55
55
v-slot =" { active, selected }"
@@ -59,7 +59,7 @@ const optionsLeft = computed(() => rootPos.left.value)
59
59
>
60
60
<span
61
61
class =" block rounded-md whitespace-nowrap py-1 px-4 cursor-pointer select-none transition transition-colors"
62
- :class =" [selected ? 'font-medium' : 'font-normal', active && 'bg-purple-100']"
62
+ :class =" [selected ? 'font-medium' : 'font-normal', active && 'bg-purple-100 dark:bg-gray-700 ']"
63
63
>
64
64
{{ op.name }}
65
65
</span >
0 commit comments