Textarea meets WCAG 2.2 level AA when used as described on these pages. It is a native <textarea>.
Keyboard
| Key |
Action |
| Tab |
Moves focus into the box. |
| Enter |
Starts a new line. It does not submit the form. |
| Shift + Tab |
Moves focus back out. |
What Textarea gives you
- A native multi-line field, with its role and value exposed by the browser.
- The text-field focus: a
color.border.focus edge with a 2 px inset ring of the same colour, a 3 px solid edge.
- An edge in
color.border.bold, at least 3:1 on every surface.
What your team does
- Give it a visible label linked with
for and id.
- Link help text and errors with
aria-describedby, and set aria-invalid="true" when the value is wrong.
- When there is a limit, say it in the help text and show what is left. If the count changes as people type, don’t announce every keystroke.
WCAG criteria
| Criterion |
Level |
How |
| 1.3.1 Info and Relationships |
A |
Label linked with for; help and error with aria-describedby |
| 1.4.11 Non-text Contrast |
AA |
color.border.bold edge |
| 2.4.7 Focus Visible |
AA |
3 px focus edge |
| 3.3.1 Error Identification |
A |
Error message in words |
| 3.3.2 Labels or Instructions |
A |
Visible label, help text with the limit |
| 4.1.2 Name, Role, Value |
A |
Native <textarea> |