Skip to content

Commit

Permalink
fix(text-inputs): fix input text disabled color (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
FDELAHA24 committed Apr 20, 2023
1 parent 7b3b043 commit 38bb2ff
Show file tree
Hide file tree
Showing 26 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ object VitaminTextInputs {
cursorColor = VitaminTheme.colors.vtmnContentAction,
errorCursorColor = VitaminTheme.colors.vtmnContentNegative,
textColor = VitaminTheme.colors.vtmnContentPrimary,
disabledTextColor = VitaminTheme.colors.vtmnActiveTertiary.copy(ContentAlpha.disabled),
disabledTextColor = VitaminTheme.colors.vtmnContentTertiary.copy(ContentAlpha.disabled),
focusedBorderColor = colors.focusBorderColor,
unfocusedBorderColor = colors.borderColor,
disabledBorderColor = VitaminTheme.colors.vtmnActiveTertiary.copy(
Expand Down Expand Up @@ -265,7 +265,7 @@ object VitaminTextInputs {
cursorColor = VitaminTheme.colors.vtmnContentAction,
errorCursorColor = VitaminTheme.colors.vtmnContentNegative,
textColor = VitaminTheme.colors.vtmnContentPrimary,
disabledTextColor = VitaminTheme.colors.vtmnActiveTertiary.copy(ContentAlpha.disabled),
disabledTextColor = VitaminTheme.colors.vtmnContentTertiary.copy(ContentAlpha.disabled),
focusedIndicatorColor = colors.focusBorderColor,
unfocusedIndicatorColor = colors.borderColor,
disabledIndicatorColor = VitaminTheme.colors.vtmnActiveTertiary.copy(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ class VitaminTextInputsPrimaryTest(
colors = TextInputsState.normal(),
enabled = false
)
TextInputVariantsFactory.TextInput(
modifier = Modifier.fillMaxWidth(),
variant = variant,
colors = TextInputsState.normal(),
enabled = false,
value = "input"
)
TextInputVariantsFactory.TextInput(
modifier = Modifier.fillMaxWidth(),
variant = variant,
Expand All @@ -82,6 +89,20 @@ class VitaminTextInputsPrimaryTest(
},
enabled = false
)
TextInputVariantsFactory.TextInput(
modifier = Modifier.fillMaxWidth(),
variant = variant,
colors = TextInputsState.normal(),
icon = {
Icon(
painter = painter,
contentDescription = null
)

},
enabled = false,
value = "input"
)
}
}
}
Expand Down Expand Up @@ -111,6 +132,13 @@ class VitaminTextInputsPrimaryTest(
colors = TextInputsState.success(),
enabled = false
)
TextInputVariantsFactory.TextInput(
modifier = Modifier.fillMaxWidth(),
variant = variant,
colors = TextInputsState.success(),
enabled = false,
value = "input"
)
}
}
}
Expand Down Expand Up @@ -140,6 +168,13 @@ class VitaminTextInputsPrimaryTest(
colors = TextInputsState.error(),
enabled = false
)
TextInputVariantsFactory.TextInput(
modifier = Modifier.fillMaxWidth(),
variant = variant,
colors = TextInputsState.error(),
enabled = false,
value = "input"
)
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 38bb2ff

Please sign in to comment.