You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
??? Info "Example: Expand/Collapse Section (Accordion)"
35
35
36
-
A user expands or collapses a section to show or hide content.
36
+
A user expands or collapses a section to show or hide content.
37
37
38
-
-**Structural Element**
39
-
Use semantic elements such as `<button>` for the trigger and headings or sections to organize content.
38
+
- **Structural Element**
39
+
Use semantic elements such as `<button>` for the trigger and headings or sections to organize content.
40
+
41
+
- **Feature**
42
+
Allow users to toggle visibility of content in a predictable and accessible way.
43
+
44
+
- **ARIA**
45
+
Use `aria-expanded` and `aria-controls` to communicate the current state and relationship between the trigger and the content region.
40
46
41
-
-**Feature**
42
-
Allow users to toggle visibility of content in a predictable and accessible way.
47
+
Use the table below to explore individual patterns, understand their purpose, and learn how to implement them correctly to support accessible, standards-compliant experiences.
43
48
44
-
-**ARIA**
45
-
Use `aria-expanded` and `aria-controls` to communicate the current state and relationship between the trigger and the content region.
46
49
47
-
Use the table below to explore individual patterns, understand their purpose, and learn how to implement them correctly to support accessible, standards-compliant experiences.
48
-
</details>
49
50
51
+
??? Info "Example: Navigation with Skip Link"
50
52
51
-
<details><summary>Example: Navigation with Skip Link</summary>
53
+
A user navigates a page and wants to skip repetitive navigation to reach the main content.
52
54
53
-
A user navigates a page and wants to skip repetitive navigation to reach the main content.
55
+
- **Structural Element**
56
+
Use landmarks such as `<nav>` and `<main>` to define navigation and primary content areas.
54
57
55
-
-**Structural Element**
56
-
Use landmarks such as `<nav>` and `<main>`to define navigation and primary content areas.
58
+
- **Feature**
59
+
Provide a skip link that allows users to jump directly to the main content.
57
60
58
-
-**Feature**
59
-
Provide a skip link that allows users to jump directly to the main content.
61
+
- **ARIA**
62
+
Use ARIA landmarks or labels only if needed to further clarify regions when multiple similar elements exist.
60
63
61
-
-**ARIA**
62
-
Use ARIA landmarks or labels only if needed to further clarify regions when multiple similar elements exist.
0 commit comments