...
States
State | Visual |
| ||
---|---|---|---|---|
Regular |
| |||
Hover |
| |||
Active | ||||
Disabled |
| |||
Read-Only | ||||
Error |
| |||
Warning |
| |||
Focused | ||||
Focused, Hover |
| |||
Focused, Active |
| |||
Focused, Disabled |
|
Interaction
The time can be set either via direct input or by using the controls in the time picker menu. Additional keyboard interactions can be found under the Focus management section below.
...
The time picker can have an initial value, which the user can edit at any time.
When clicking the text, the relevant input section will be highlighted (HH, MM, or AM/PM.).
For example:When HH or MM are highlighted, only numerical value inputs will be permitted.
When AM/PM is clicked on, it will toggle between the two options.
Once an input section has been filled, the highlight will move to the next section.
On Apply, the time picker field will lose focus (nothing is highlighted).
The user should be allowed to enter times in loose formats, where possible. These should be automatically corrected when the field loses focus. For example:
5 should be auto-corrected to 05.
when the time format is set to 12 hours, 15:08 auto-corrects to 03:08 PM.
...
Keyboard | Time picker field | Time picker menu |
---|---|---|
Tab |
| Navigates between the different sections in a cyclical order:
|
Shift + Tab |
| Reverses the order of navigation described for Tab. |
Space | Opens the time picker menu. |
|
Enter | Applies the time. |
|
Esc | N/A | Closes the menu and returns the focus to the field, without applying any changes. |
Arrows |
|
|
...
Zeplin Link | Thumbnail |
---|---|
Code
...