Usage
A text field is a rectangular area in which people enter or edit small, specific pieces of text.
Given that I am on a screen with a number input field
| When I use | I see/hear |
|---|---|
| Arrow keys or ctrl + tab | Focus visibly moves to the input |
| Spacebar | Selects input field |
| When I use | I hear |
|---|---|
| Swipe | Focus moves to the input, expresses its name, role, state then any instructions |
| Doubletap | Numeric keyboard appears appears to edit |
| Reads | I hear |
|---|---|
| Name | Its purpose is clear and matches visible label |
| Role | It identifies itself as text field |
| Group | Its visible label and instructions are read with the input in focus |
| State | If applicable, it expresses its state (required, dimmed, invalid) |
| When I use | I see |
|---|---|
| Text resize | Text can resize up to 200% without losing information |
| Increased contrast | Focus outline becomes high contrast |
A text field is a rectangular area in which people enter or edit small, specific pieces of text.