mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
add dark-mode in checkbox (#1162)
This commit is contained in:
@ -15,12 +15,12 @@
|
|||||||
v-if="label"
|
v-if="label"
|
||||||
:for="id"
|
:for="id"
|
||||||
:class="`font-medium ${
|
: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 `"
|
} cursor-pointer `"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</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>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -51,7 +51,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
checkboxClass: {
|
checkboxClass: {
|
||||||
type: String,
|
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: {
|
setInitialValue: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user