Field Validations are a way of talking to our users. It is designed to make the user understand a mistake and the ways to correct it.
Example:
Type | Usage |
---|---|
| Alerting the user on actions that will not allow him to complete the task. |
| Alerting the user on actions that might contain a mistake or a non fatal error. |
On fields, triggering the validation can occur before or after submitting the form:
If a user started editing a field which had a validation indication, the indication will be removed (i.e. it will be treated as if the user had edited the field for the 1st time).
<<TBD animation - show with at spinner field for ease of creating>>
If user had entered a form/page/screen for the first time (fields are empty), logical validation should not be enabled. However, syntax validation should be enabled.
in cases where user enters a page that already had input, the validation should be displayed (e.g. the user enters a page already edited with warnings in it)
The field validation consists of:
Examples:
Tooltips examples:
type | Examples | Comments |
---|---|---|
1 row text | ||
2 row text | ||
Partial coverage of control | User can still click the control | |
Left position | ||
Used as any component with a tooltip
Screen reader should read a loud the state of the field once the user focuses on it.
Should be A11y complied
Zeplin link | Screen thumbnail |
---|---|
https://app.zeplin.io/project/5970b366bee38cf87b2de932/screen/5baca0fa7044c49e813fe220 | ![]() |
https://app.zeplin.io/project/5970b366bee38cf87b2de932/screen/5baca11066034667cc35f576 |
<<a box containing the code - discuss with Femi>>
|