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
Copy file name to clipboardexpand all lines: components/expand-collapse/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,8 @@ The `d2l-expand-collapse-content` element can be used to create expandable and c
41
41
To make your usage of `d2l-expand-collapse-content` accessible, it should follow the [W3C Disclosure (Show/Hide) Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/).
42
42
43
43
To achieve this, the control that toggles the expanded state should:
44
-
-Should use the [`d2l-button`](../button) or use an element with the [`button`](https://w3c.github.io/aria/#button) role
44
+
-Use the [`d2l-button`](../button) or use an element with the [`button`](https://w3c.github.io/aria/#button) role
45
45
- Toggle between states when using the `Enter` and `Space` buttons and retain focus upon toggle
46
-
- Have the [`aria-expanded`](https://www.w3.org/TR/wai-aria/#aria-expanded) attribute, so screen reader users will know what state it's in
46
+
- Have the [`aria-expanded`](https://www.w3.org/TR/wai-aria/#aria-expanded) attribute set to `'true'` or `'false'` depending on expansion state so that screen reader users will know what state it's in
0 commit comments