-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathslider.yaml
55 lines (55 loc) · 2.99 KB
/
slider.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Slider
alternativeComponentNames: Range
description: A slider is an input where the user selects a value from within a given range.
imageUrl: /components/slider.svg
testModes:
- testMode: Keyboard
criteria:
- _id: 1
title: The slider is focusable with 'tab'
help: Click close above to the interactive example of a slider and use 'tab' to try to navigate to it. You should be able to focus the slider.
sources:
- https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html
- _id: 2
title: A focused slider has a visible focus style
help: If you reached the slider with 'tab', you should (easily) be able to tell that the slider (thumb) is currently focused.
sources:
- https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html
- _id: 3
title: "'Right Arrow' or 'Up Arrow' increases the value of the slider"
help: Using the 'right' or ' up' arrow keys, try to increase the value of the slider. At least one variation should work.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/slider/
- https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html
- _id: 4
title: "'Left Arrow' or 'Down Arrow' decreases the value of the slider"
help: Using the 'left' or 'down' arrow keys, try to increase the value of the slider. At least one variation should work.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/slider/
- https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html
- testMode: Screenreader
criteria:
- _id: 1
title: The slider is announced as a 'slider' on focus
help: Click close above to the interactive example of a slider and use 'tab' to try to navigate to it. Upon focusing the slider, it is announced as a slider.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/slider/
- https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html
- _id: 2
title: The label of the slider is announced on focus
help: Upon focusing the slider, it should announce the label. If there is no label provided by the documentation, choose 'not decidable'.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/slider/
- https://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions.html
- _id: 3
title: The current value of the slider is announced on focus
help: Upon focusing the slider, it should announce the current value.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/slider/
- https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html
- _id: 4
title: The current value of the slider is announced on change
help: Use the arrow keys to change the value of the slider. The updated value should be announced on change.
sources:
- https://www.w3.org/WAI/ARIA/apg/patterns/slider/
- https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html