This repository has been archived by the owner on Jul 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dependencies.txt
69 lines (41 loc) · 2.86 KB
/
Dependencies.txt
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
56
57
58
59
60
61
62
63
64
65
66
67
68
Notes and Dependencies
1.
In order to view the Core API reference materials and Functionality Templates in some browsers, the source code files must be hosted on a web server.
2.
When making changes to the JavaScript code and HTML markup of Functionality Templates, it is very important to test these changes using the keyboard (without using the mouse at all), to ensure that keyboard accessibility is maintained.
Similarly, to ensure that all code changes remain fully accessible to screen reader users as well, all newly added features should be tested with the following screen reader and browser combinations: (Again, without use of the mouse at all)
a) The latest release of JAWS For Windows from http://www.freedomscientific.com/
And
b) The latest release of NVDA from http://www.nvda-project.org/
3.
Important CSS considerations:
You can change the visual styling for all Functionality Templates to fit the visual layout of any UI design without negatively impacting screen reader or keyboard accessibility.
E.G: Foreground and background coloration, bordering, font and window sizes, floating and positioning, etc.
With the following exceptions:
a)
Pure white font on a black background should not be used anywhere within the same page.
E.G: "color: #fff; background-color: #000;"
Doing so, will cause JAWS13 (and +?) to announce the text with this color combination every time a control that uses role=dialog is opened and keyboard focus is set within.
Setting the foreground color to White Smoke will prevent this issue from occurring.
E.G: "color: #f5f5f5; background-color: #000;"
b)
The styles "display: none;" and "visibility: hidden;" will hide all contained elements and text from both sighted users and screen reader users alike.
To hide all contained elements and text from sighted users, while at the same time keeping the same elements and text visible for screen reader users, the following styling may be used instead:
.sraCSS {
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: polygon(0px 0px, 0px 0px,0px 0px, 0px 0px);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
z-index: -1000;
}
This is referred to as Screen Reader Accessible Hidden Text or Off Screen Text, and will ensure that the element and all content within is invisible for sighted users, while at the same time keeping it visible to screen readers.
Screen Reader Accessible Hidden Text should only be used when it's desirable to present additional content to screen reader users, and should never be used simply to hide content, nor should it be used to embed SEO content within pages since this will cause screen reader users to stumble across nonsensical information during navigation.
4.
Tips:
a)
To view and test the DOM positioning and verbiage of Screen Reader Accessible Hidden Text, simply disable CSS in the browser.