Skip to content

Commit 5d76bbe

Browse files
Update index.md
1 parent 5fc2753 commit 5d76bbe

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • docs/getting-started/accessibility-patterns-index

docs/getting-started/accessibility-patterns-index/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ Each category groups related patterns that address how users interact with conte
1818
👉 Start with Structure → build the Feature → enhance with ARIA
1919
Begin with semantic HTML to establish meaning, implement the user-facing functionality, and only use ARIA when native HTML cannot fully convey behavior or relationships. Avoid replacing native elements with ARIA unless necessary.
2020

21+
22+
<details><summary>Example: Form Input with Error Messaging</summary>
23+
24+
A user enters information into a form field and receives feedback if there is an error.
25+
26+
- **Structural Element**
27+
Use semantic HTML such as `<label>` and `<input>` to define the form field and its relationship.
28+
29+
- **Feature**
30+
Provide input validation and clear error messaging so users understand what is required and how to fix issues.
31+
32+
- **ARIA**
33+
Use ARIA (e.g., `aria-describedby`, `aria-live`) only when needed to associate instructions or announce dynamic error messages.
34+
</details>
35+
2136
Use the table below to explore individual patterns, understand their purpose, and learn how to implement them correctly to support accessible, standards-compliant experiences.
2237

2338

0 commit comments

Comments
 (0)