We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e6efc7 commit d8605d0Copy full SHA for d8605d0
core/design-system/src/main/java/team/retum/jobisdesignsystemv2/textfield/JobisTextField.kt
@@ -108,15 +108,10 @@ private fun JobisVerificationButton(
108
isSendAuthenticationCode: Boolean,
109
enabled: Boolean = false,
110
) {
111
- val backgroundColor = if (enabled) {
112
- JobisTheme.colors.onPrimary
+ val (textColor, backgroundColor) = if (enabled) {
+ JobisTheme.colors.primary to JobisTheme.colors.onPrimary
113
} else {
114
- JobisTheme.colors.surfaceVariant
115
- }
116
- val textColor = if (enabled) {
117
- JobisTheme.colors.primary
118
- } else {
119
- JobisTheme.colors.onSurfaceVariant
+ JobisTheme.colors.onSurfaceVariant to JobisTheme.colors.surfaceVariant
120
}
121
122
Box(
0 commit comments