mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
Compare commits
1 Commits
dark-selec
...
dark-list-
| Author | SHA1 | Date | |
|---|---|---|---|
| 4645b21f91 |
@ -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',
|
||||
]"
|
||||
>
|
||||
|
||||
@ -28,13 +28,13 @@ export default {
|
||||
},
|
||||
},
|
||||
setup(props, { slots }) {
|
||||
const defaultClass = `cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 flex items-center`
|
||||
const defaultClass = `cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 flex items-center`
|
||||
let hasIconSlot = computed(() => {
|
||||
return !!slots.icon
|
||||
})
|
||||
let containerClass = computed(() => {
|
||||
if (props.active) return `${defaultClass} text-primary-500`
|
||||
else return `${defaultClass} text-gray-500`
|
||||
if (props.active) return `${defaultClass} text-primary-500 dark:text-primary-400`
|
||||
else return `${defaultClass} text-gray-500 dark:text-gray-300`
|
||||
})
|
||||
return {
|
||||
hasIconSlot,
|
||||
|
||||
Reference in New Issue
Block a user