Compare commits

..

1 Commits

Author SHA1 Message Date
fda83907f9 add dark-mode in checkbox 2023-03-21 16:07:51 +05:30
2 changed files with 5 additions and 7 deletions

View File

@ -15,12 +15,12 @@
v-if="label"
:for="id"
:class="`font-medium ${
disabled ? 'text-gray-400 cursor-not-allowed' : 'text-gray-600'
disabled ? 'text-gray-400 cursor-not-allowed' : 'text-gray-600 dark:text-white'
} cursor-pointer `"
>
{{ label }}
</label>
<p v-if="description" class="text-gray-500">{{ description }}</p>
<p v-if="description" class="text-gray-500 dark:text-gray-400">{{ description }}</p>
</div>
</div>
</template>
@ -51,7 +51,7 @@ const props = defineProps({
},
checkboxClass: {
type: String,
default: 'w-4 h-4 border-gray-300 rounded cursor-pointer',
default: 'w-4 h-4 border-gray-300 rounded cursor-pointer dark:bg-gray-600 dark:border-gray-500',
},
setInitialValue: {
type: Boolean,

View File

@ -12,7 +12,7 @@
>
<ListboxLabel
v-if="label"
class="block text-sm not-italic font-medium text-gray-800 mb-0.5 dark:text-white"
class="block text-sm not-italic font-medium text-gray-800 mb-0.5"
>
{{ label }}
</ListboxLabel>
@ -28,7 +28,6 @@
pr-10
text-left
bg-white
dark:bg-gray-700
border border-gray-200
rounded-md
shadow-sm
@ -90,7 +89,6 @@
ring-1 ring-black ring-opacity-5
focus:outline-none
sm:text-sm
dark:bg-gray-700
"
>
<ListboxOption
@ -102,7 +100,7 @@
>
<li
:class="[
active ? 'text-white bg-primary-600' : 'text-gray-900 dark:text-white',
active ? 'text-white bg-primary-600' : 'text-gray-900',
'cursor-default select-none relative py-2 pl-3 pr-9',
]"
>