Skip to content

Commit

Permalink
fix disabled input dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragchhatrala committed Nov 21, 2024
1 parent b0e9502 commit 91ca573
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/components/forms/CodeInput.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
theme.CodeInput.borderRadius,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
>
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const updateModelValue = () => {
const inputClasses = computed(() => {
const classes = [props.theme.DateInput.input, props.theme.DateInput.borderRadius]
if (props.disabled) {
classes.push('!cursor-not-allowed dark:!bg-gray-600 !bg-gray-200')
classes.push('!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800')
}
if (input.hasError.value) {
Expand Down
4 changes: 2 additions & 2 deletions client/components/forms/FlatSelectInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
theme.default.borderRadius,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
>
Expand All @@ -34,7 +34,7 @@
theme.FlatSelectInput.fontSize,
theme.FlatSelectInput.option,
{
'!cursor-not-allowed !bg-gray-200': disableOptions.includes(option[optionKey]),
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disableOptions.includes(option[optionKey]),
},
]"
@click="onSelect(option[optionKey])"
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/MentionInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
theme.default.fontSize,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed dark:!bg-gray-600 !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
'pr-12'
]"
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/PhoneInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
theme.PhoneInput.borderRadius,
{
'!ring-red-500 !ring-2': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
:placeholder="placeholder"
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/RichTextAreaInput.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:class="[
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
theme.RichTextAreaInput.input,
theme.RichTextAreaInput.borderRadius,
Expand Down
4 changes: 2 additions & 2 deletions client/components/forms/SignatureInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
theme.SignatureInput.borderRadius,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
class="flex flex-wrap items-center justify-center gap-4"
Expand Down Expand Up @@ -50,7 +50,7 @@
theme.SignatureInput.borderRadius,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
height="150px"
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/TextAreaInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
theme.default.fontSize,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
class="resize-y block"
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
theme.default.fontSize,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
},
]"
:name="name"
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/components/VSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
theme.SelectInput.borderRadius,
{
'!ring-red-500 !ring-2 !border-transparent': hasError,
'!cursor-not-allowed dark:!bg-gray-600 !bg-gray-200': disabled,
'!cursor-not-allowed !bg-gray-200 dark:!bg-gray-800': disabled,
'focus-within:ring-2 focus-within:ring-opacity-100 focus-within:border-transparent': !hasError
},
inputClass
Expand Down

0 comments on commit 91ca573

Please sign in to comment.