Input field validation (success) #1291
-
The specific questions I have are...
Background: We want to include the input field validation (success) pattern in Flex. This enables the user to see whether or not the input field is valid or if there is an error. This is to confirm to the user that the action they have taken is successful or not. This pattern combines a 'tick icon' with text in the applicable color (green), and lives underneath the input field. Stage of design: High-fidelity and exploration |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @Porlin,
All you can do right now is pass a "success" colored icon to the HelpText under the input field. It isn't possible to change the input border color since we don't allow that currently. It is possible to wrap the HelpText with a
A few thoughts:
This pattern is not used in Console. I believe it's because of the concern I listed above, in that it can cause users to think the field was saved without hitting the "Save" button on the form. While we haven't seen any demand for this pattern thus far, but we'll be monitoring to see if there's any need in the future. |
Beta Was this translation helpful? Give feedback.
Hi @Porlin,
All you can do right now is pass a "success" colored icon to the HelpText under the input field. It isn't possible to change the input border color since we don't allow that currently. It is possible to wrap the HelpText with a
Text
component to change the color, but this doesn't pass color contrast ratios for accessibility so we don't suggest doing that either. Would changing the color of the icon in the HelpText be enough?A few thoughts: