-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaccordion.yml
41 lines (41 loc) · 2.39 KB
/
accordion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Accordion
alternativeComponentNames: Disclosure, Expansion Panel
description: An accordion is a vertically stacked set of headings each with a collapsible panel
imageUrl: /components/accordion.svg
testModes:
- testMode: Screenreader
criteria:
- _id: 1
title: The sceenreader announces the heading as a 'button'
help: Navigate to a heading. The screenreader should announce it as a 'button'. In this way, screen reader users can recognize the heading as an interactive element.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
- _id: 2
title: The screenreader announces the current state of the accordion header element
help: Move the focus between the heading element of one of the sections. The screenreader should announce the section as 'expanded' or 'collapsed', or similar.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
- https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html
- testMode: Keyboard
criteria:
- _id: 1
title: The header elements are focusable
help: Since the header/title elements are interactive and are used to open and close the accordion, they should be focusable. Navigate to a header element by clicking the 'tab' key repeatedly.
sources:
- https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html
- _id: 2
title: The focus style of the header elements is visible
help: Navigate to a header element with 'tab'. you should (easily) be able to recognize which header element is currently focused. This is usually done with an outline.
sources:
- https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html
- _id: 3
title: The panel opens/closes with `space` or `enter` keys upon focus of a header element
help: To interact with the accordion, it should be possible to open and close it.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
- https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html
- _id: 4
title: Navigation between panel headers is possible with 'tab'
help: To open and close the different panels of the accordion, it is neccessary to be able to change between the different panels to open and close them
sources:
- https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html