mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Compare commits
1 Commits
dark-list-
...
dark-selec
| Author | SHA1 | Date | |
|---|---|---|---|
| 5116ba3ee1 |
@ -12,7 +12,7 @@
|
|||||||
>
|
>
|
||||||
<ListboxLabel
|
<ListboxLabel
|
||||||
v-if="label"
|
v-if="label"
|
||||||
class="block text-sm not-italic font-medium text-gray-800 mb-0.5"
|
class="block text-sm not-italic font-medium text-gray-800 mb-0.5 dark:text-white"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</ListboxLabel>
|
</ListboxLabel>
|
||||||
@ -28,6 +28,7 @@
|
|||||||
pr-10
|
pr-10
|
||||||
text-left
|
text-left
|
||||||
bg-white
|
bg-white
|
||||||
|
dark:bg-gray-700
|
||||||
border border-gray-200
|
border border-gray-200
|
||||||
rounded-md
|
rounded-md
|
||||||
shadow-sm
|
shadow-sm
|
||||||
@ -89,6 +90,7 @@
|
|||||||
ring-1 ring-black ring-opacity-5
|
ring-1 ring-black ring-opacity-5
|
||||||
focus:outline-none
|
focus:outline-none
|
||||||
sm:text-sm
|
sm:text-sm
|
||||||
|
dark:bg-gray-700
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<ListboxOption
|
<ListboxOption
|
||||||
@ -100,7 +102,7 @@
|
|||||||
>
|
>
|
||||||
<li
|
<li
|
||||||
:class="[
|
:class="[
|
||||||
active ? 'text-white bg-primary-600' : 'text-gray-900',
|
active ? 'text-white bg-primary-600' : 'text-gray-900 dark:text-white',
|
||||||
'cursor-default select-none relative py-2 pl-3 pr-9',
|
'cursor-default select-none relative py-2 pl-3 pr-9',
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -28,13 +28,13 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, { slots }) {
|
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(() => {
|
let hasIconSlot = computed(() => {
|
||||||
return !!slots.icon
|
return !!slots.icon
|
||||||
})
|
})
|
||||||
let containerClass = computed(() => {
|
let containerClass = computed(() => {
|
||||||
if (props.active) return `${defaultClass} text-primary-500 dark:text-primary-400`
|
if (props.active) return `${defaultClass} text-primary-500`
|
||||||
else return `${defaultClass} text-gray-500 dark:text-gray-300`
|
else return `${defaultClass} text-gray-500`
|
||||||
})
|
})
|
||||||
return {
|
return {
|
||||||
hasIconSlot,
|
hasIconSlot,
|
||||||
|
|||||||
Reference in New Issue
Block a user