[SDK] No standard error appearance for text fields and other controls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UX |
Fix Committed
|
Medium
|
Femma | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Committed
|
Low
|
Unassigned |
Bug Description
[Updated description]
The toolkit does not have a standard error appearance for text fields, other controls, or captions.
The error appearance should be used for fields that you have filled out incorrectly, other controls that have a disallowed state, and captions explaining the problem with individual controls.
Examples:
* If you choose a time in a restaurant reservation system, submit the request, and the server responds that that time is unavailable, the time picker should retain the previous value (so you can see what you chose) but should have the error appearance. A caption should appear below it explaining the problem: for example, “Sorry, 7:30pm is unavailable. Try earlier or later.".
* Similarly, the validity of a checkbox, radio button, switch, etc selection might be too complex or volatile to check on the client side of an app. If the server side responds that the selection isn't allowed, the control should adopt the standard error appearance, and a caption below if necessary.
* Changing the SIM PIN requires entering the current PIN. The phone can't check the correctness of the current PIN with every character you type, because trying an incorrect PIN three times or so will lock the SIM. Instead, it is checked only once you submit the dialog. *Then* if the current PIN turns out to be wrong, that field should get the standard error appearance (maybe a pale pink background, and/or a maroon border, and/or a brief flash), and an explanatory caption below it.
* All the captions mentioned above should have their own consistent error appearance. (Maybe maroon text.)
–––
Desired resolution:
An error state with examples of multiline captions will be added to the SDK UI work underway.
UX fix:
Error handling pattern can be found on in this document: https:/
description: | updated |
Changed in ubuntu-ux: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Olga Kemmet (olga-kemmet) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
no longer affects: | ubuntu-ui-toolkit |
summary: |
- No standard error appearance for text fields and other controls + [SDK] No standard error appearance for text fields and other controls |
Changed in ubuntu-ux: | |
assignee: | Olga Kemmet (olga-kemmet) → Giorgio Venturi (giorgio-venturi) |
Changed in ubuntu-ux: | |
assignee: | Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet) |
Changed in ubuntu-ux: | |
assignee: | Olga Kemmet (olga-kemmet) → Jamie Young (jamiedawsonyoung) |
description: | updated |
Changed in ubuntu-ux: | |
status: | Triaged → In Progress |
Changed in ubuntu-ux: | |
assignee: | Jamie Young (jamiedawsonyoung) → Femma (femma) |
Changed in ubuntu-ux: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → Fix Committed |
TextField has the ability to highlight erroneous input. In order to have it working properly, a validator must be set.