Compare commits

..

1 Commits

Author SHA1 Message Date
5116ba3ee1 add dark mode in BaseSelectInput 2023-03-25 15:13:27 +05:30
2 changed files with 8 additions and 8 deletions

View File

@ -65,7 +65,6 @@
rounded-l-md rounded-l-md
bg-gray-50 bg-gray-50
sm:text-sm sm:text-sm
dark:bg-gray-800 dark:border-gray-600 dark:text-gray-300
" "
> >
{{ addon }} {{ addon }}
@ -83,7 +82,7 @@
pointer-events-none pointer-events-none
" "
> >
<span class="text-gray-500 dark:text-white sm:text-sm "> <span class="text-gray-500 sm:text-sm">
{{ inlineAddon }} {{ inlineAddon }}
</span> </span>
</div> </div>
@ -200,7 +199,7 @@ const props = defineProps({
defaultInputClass: { defaultInputClass: {
type: String, type: String,
default: default:
'font-base block w-full sm:text-sm border-gray-200 rounded-md text-black dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-500', 'font-base block w-full sm:text-sm border-gray-200 rounded-md text-black',
}, },
iconLeftClass: { iconLeftClass: {
type: String, type: String,
@ -251,8 +250,7 @@ const inputAddonClass = computed(() => {
const inputInvalidClass = computed(() => { const inputInvalidClass = computed(() => {
if (props.invalid) { if (props.invalid) {
return 'border-red-500 dark:border-red-500 ring-red-500 dark:ring-red-500 focus:ring-red-500 dark:focus:ring-red-500 focus:border-red-500 dark:focus:border-red-500 ' return 'border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500'
} }
return 'focus:ring-primary-400 focus:border-primary-400' return 'focus:ring-primary-400 focus:border-primary-400'
@ -260,7 +258,7 @@ const inputInvalidClass = computed(() => {
const inputDisabledClass = computed(() => { const inputDisabledClass = computed(() => {
if (props.disabled) { if (props.disabled) {
return `border-gray-100 bg-gray-100 !text-gray-400 dark:!text-gray-200 ring-gray-200 focus:ring-gray-200 focus:border-gray-100 dark:opacity-25 ` return `border-gray-100 bg-gray-100 !text-gray-400 ring-gray-200 focus:ring-gray-200 focus:border-gray-100`
} }
return '' return ''

View File

@ -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',
]" ]"
> >