Clarity: Request <clr-control-succes> for input

Created on 29 Apr 2019  路  6Comments  路  Source: vmware/clarity

Summary

Clarity allows to apply an error state <clr-control-error></clr-control-error> after form validation. In certain circumstances it would be nice to have a standardized 'succes' <clr-control-succes></clr-control-succes> status for the validated input field.

Use case

In our current application we use a modal in which different kind of barcodes can be scanned, After input of a barcode string the form will be validated; when successful the modal will be closed and the current 'route' is changed after a time-out. When the barcode format is unknown, the clr-control-error will be set until the input is adjusted. Since the modal is closed by the application the user should be sure that the input is valid.

Additionally it can be a useful feature when a form with lots of inputs needs to be evaluated.

Examples

<clr-control-error></clr-control-error>
afbeelding

<clr-control-success></clr-control-success>
afbeelding

Workarounds

Not investigated

forms enhancement ready

Most helpful comment

This can be useful for other async validators like valid username, valid credit card number and this kind of things

All 6 comments

This can be useful for other async validators like valid username, valid credit card number and this kind of things

This is an interesting suggestion, thank you for it. We鈥檒l consider it and see what kind of design we need to make something like this possible.

Small note:
looks like success check should be in rounded border as already exist in <clr-control-error></clr-control-error>.

<clr-icon shape="check-circle"></clr-icon> perfectly fit for it.

Good request changing to needs design - will be an enhancement to inputs.

Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

Was this page helpful?
0 / 5 - 0 ratings