-
Notifications
You must be signed in to change notification settings - Fork 678
Introduce form validation #11382
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
base: master
Are you sure you want to change the base?
Introduce form validation #11382
Conversation
Diffuse output:
APK
DEX
|
954a611
to
698405e
Compare
f896c15
to
76779ee
Compare
MaterialTheme.colors.error | ||
} else { | ||
Color.Transparent | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds support for underlining the dropdown.
@@ -406,7 +407,7 @@ fun TextFieldColors( | |||
placeholderColor = MaterialTheme.stripeColors.placeholderText, | |||
backgroundColor = backgroundColor, | |||
focusedIndicatorColor = Color.Transparent, | |||
disabledIndicatorColor = Color.Transparent, | |||
disabledIndicatorColor = disabledIndicatorColor, | |||
unfocusedIndicatorColor = Color.Transparent, | |||
cursorColor = MaterialTheme.stripeColors.textCursor | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for the indicator to have a color when disabled (used for dropdown
phoneNumberMinimumLength | ||
) { value, minLength -> | ||
value to (value.length >= (minLength ?: 0) || acceptAnyInput) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helps stop a double value emit
76779ee
to
a6724a3
Compare
6d282f7
to
e254fdc
Compare
fa52ba8
to
64f9044
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the Link side. Tested new card and bank additions to the Link wallet.
Summary
Introduce form validation
Motivation
Merchant ask, upon clicking the disabled
Continue
button, should show all validation errors.Testing