Skip to content

Commit

Permalink
add dark mode in BaseMoney and BaseTextArea
Browse files Browse the repository at this point in the history
  • Loading branch information
varshapun committed Mar 22, 2023
1 parent 15f3f56 commit a8ffd2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/components/base/BaseMoney.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const props = defineProps({
inputClass: {
type: String,
default:
'font-base block w-full sm:text-sm border-gray-200 rounded-md text-black',
'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',
},
disabled: {
type: Boolean,
Expand Down Expand Up @@ -86,7 +86,7 @@ const currencyBindings = computed(() => {
const invalidClass = computed(() => {
if (props.invalid) {
return 'border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500'
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 'focus:ring-primary-400 focus:border-primary-400'
})
Expand Down
2 changes: 1 addition & 1 deletion resources/scripts/components/base/BaseTextarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const props = defineProps({
defaultInputClass: {
type: String,
default:
'box-border w-full px-3 py-2 text-sm not-italic font-normal leading-snug text-left text-black placeholder-gray-400 bg-white border border-gray-200 border-solid rounded outline-none',
'box-border w-full px-3 py-2 text-sm not-italic font-normal leading-snug text-left text-black placeholder-gray-400 bg-white border border-gray-200 dark:border-gray-600 border-solid rounded outline-none dark:bg-gray-700 dark:text-white',
},
autosize: {
type: Boolean,
Expand Down

0 comments on commit a8ffd2c

Please sign in to comment.