Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix disabled input dark mode #622

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading