Skip to content

Commit 946e344

Browse files
Merge branch 'main' into patrickhlauke-pointer-gesture-dragging-disambiguation
2 parents ae678e1 + f7e0523 commit 946e344

File tree

99 files changed

+821
-624
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+821
-624
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

techniques/client-side-script/SCR39.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@ <h3>Expected Results</h3>
131131
</section>
132132
<section id="related">
133133
<h2>Related Techniques</h2>
134-
<p>Currently none.</p>
135134
<ul>
136-
<li>ID</li>
135+
<li><a href="../failures/F95.html">F95</a></li>
137136
</ul>
138137
</section>
139138
</body>

techniques/failures/F85.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ <h3>Procedure</h3>
5252
</ul>
5353
</li>
5454
<li>
55-
<p>Dismiss the menu or dialog</p>
56-
<ul>
57-
<li>Check whether focus is on the trigger control.</li>
58-
<li>If focus needs to be placed on a different control, check whether that different control is logical.</li>
59-
</ul>
60-
</li>
55+
<p>Activate a control in the menu or dialog that causes it to close. This could be a cancel or delete button or another action that causes changes to the page and at the same time closes the menu or dialog.</p>
56+
<ul>
57+
<li>
58+
<p>Check whether keyboard focus is put back on the trigger control</p>
59+
<li>
60+
<li>
61+
<p>If the trigger control itself was removed as a result of the activation, check if the focus has been put on the interactive element immediately preceding or following the removed trigger control, or wherever is logical.</p>
62+
</li>
63+
</ul>
64+
</li>
6165
</ol>
6266
</section>
6367
<section class="results">

techniques/failures/F95.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h3>Expected Results</h3>
5757
<section id="related">
5858
<h2>Related Techniques</h2>
5959
<ul>
60-
<li>ID</li>
60+
<li><a href="../client-side-script/SCR39.html">SCR39</a></li>
6161
</ul>
6262
</section>
6363
</body>

techniques/general/G160.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<p>Information on how to find sign language interpreters is listed in the resources section below.</p>
99
<div class="note">
1010
<p>If the video stream is too small, the sign language interpreter will be indiscernible. When creating a video stream that includes a video of a sign language interpreter, make sure there is a mechanism to play the video stream full screen in the accessibility-supported content technology. Otherwise, be sure the interpreter portion of the video is adjustable to the size it would be had the entire video stream been full screen.</p>
11-
<p>Since sign language is not usually a signed version of the printed language, the author has to decide which sign language to include. Usually the sign language of the primary audience would be used. If intended for multiple audiences, multiple sign languages may be used. Refer to advisory techniques for multiple sign languages.</p>
11+
<p>Since sign language is not usually a signed version of the printed language, the author has to decide which sign language to include. Usually the sign language of the primary audience would be used. If intended for multiple audiences, multiple sign languages may be used.</p>
1212
</div>
1313
</section><section id="examples"><h2>Examples</h2>
1414
<ul>

techniques/general/G194.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</section><section id="examples"><h2>Examples</h2>
66
<ul>
77
<li>A search engine has a form field for search terms. When the form is submitted, a server-side application checks the spelling. If the spelling doesn't match any words for that language, it sends back a page with a text message at the top saying "Did you mean ..." with a link to the suggested word. If the user clicks on the link the suggested term is entered into the form field and is resubmitted.</li>
8-
<li>An airline has a on online ticket purchasing application. When a user types the name of a city into the form field a dropdown menu shows the closest match to the city in the top of the menu and other suggestions below.</li>
8+
<li>An airline has an online ticket purchasing application. When a user types the name of a city into the form field a dropdown menu shows the closest match to the city in the top of the menu and other suggestions below.</li>
99
</ul>
1010
</section><section id="tests"><h2>Tests</h2>
1111
<section class="procedure"><h3>Procedure</h3>

techniques/general/G200.html

Lines changed: 0 additions & 40 deletions
This file was deleted.

techniques/general/G201.html

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,26 @@ <h2>When to Use</h2>
1717
</section>
1818
<section id="description">
1919
<h2>Description</h2>
20-
<p>The objective of this technique is to provide a warning before automatically
21-
opening a new window or tab. Opening new windows automatically when
22-
a link is activated can be disorienting for people who have difficulty
20+
<p>The objective of this technique is to provide advanced warning for links and buttons that open a new
21+
window or tab when activated by the user. This only applies to "regular" activation, such as
22+
a left-click on a mouse, or pressing <kbd>Enter</kbd> or <kbd>Space</kbd> when the link or button has
23+
focus – actions that normally would open the link target in the current tab or window, trigger an action
24+
on the current page, or result in a form submission and a loading a confirmation page in in the current tab or window.
25+
The technique does not apply to situations where the user explicitly chooses to open a new tab or window – for instance,
26+
when using the browser's context menu option, or middle-clicking a link with the mouse.</p>
27+
<p>Opening a new tab or window when
28+
a link or button is activated can be disorienting for people who have difficulty
2329
perceiving visual content, and for some people with cognitive disabilities,
24-
if they are not warned in advance. Providing a warning allows the user
25-
to decide it they want to leave the current window, and the warning
26-
will help them find their way back, if they do decide they would like
27-
to go to the new window. It will help them understand that the "back" button
28-
will not work and that they have to return to the last window they
30+
if they are not warned in advance. Providing a warning or indication that a new tab or window
31+
will be opened allows the user to decide it they want to leave the current tab or window. It will also help
32+
them understand that, once they follow they activate the link or button, their browser's "back" button
33+
will not work and that they have to return to the last tab or window they
2934
had open, in order to find their previous location.</p>
35+
<div class="note">
36+
<p>This technique is advisory. While indicating that a link or button
37+
"opens in a new window" is considered good practice, it is not necessary
38+
to meet the requirements of any particular success criterion.</p>
39+
</div>
3040
</section>
3141
<section id="examples">
3242
<h2>Examples</h2>
@@ -39,11 +49,12 @@ <h3>Including the warning in the text describing a control</h3>
3949
&lt;/a&gt;</code></pre>
4050
</section>
4151
<section class="example">
42-
<h3>Using CSS to provide a warning before opening a new window</h3>
43-
44-
<p>The code below uses CSS to provide a warning before opening a new
45-
window.</p>
46-
52+
<h3>Using an icon and accessible description to provide a warning before opening a new window</h3>
53+
54+
<p>The code below uses CSS to add an SVG icon to a link, providing a visual warning before opening a new
55+
window. In addition, <code>aria-describedby</code> is used on the link to include an equivalent text warning
56+
for assistive technology users.</p>
57+
4758
<pre><code class="language-html">&lt;!DOCTYPE html&gt;
4859
&lt;html lang="en"&gt;
4960
&lt;head&gt;
@@ -84,35 +95,34 @@ <h3>Using CSS to provide a warning before opening a new window</h3>
8495
role="img"&gt;&lt;use href="#new-window-icon"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/p&gt;
8596
&lt;/body&gt;
8697
&lt;/html&gt;</code></pre>
87-
88-
<p class="working-example">A <a href="../../working-examples/css-new-window-warn/">working example of Using CSS to provide a warning before opening a new window</a> is available.</p>
89-
98+
99+
<p class="working-example">A <a href="../../working-examples/css-aria-new-window-warn/">working example of Using an icon and accessible description to provide a warning before opening a new window</a> is available.</p>
100+
90101
</section>
91-
</section>
92-
<section id="tests">
102+
</section>
103+
<section id="tests">
93104
<h2>Tests</h2>
94105
<section class="procedure">
95-
<h3>Procedure</h3>
96-
<p>For each link that opens automatically in a new window or tab when a change of context is initiated by a user request:</p>
97-
<ol>
98-
<li>Check that there is a warning spoken in assistive technology that this link opens to a new window.</li>
99-
<li>Check that there is a visual warning in text that this link opens to a new window.</li>
100-
</ol>
106+
<h3>Procedure</h3>
107+
<p>For each link or button that opens a new window or tab when activated:</p>
108+
<ol>
109+
<li>Check that there is a warning spoken in assistive technology that this control opens a new window.</li>
110+
<li>Check that there is a visual warning/indication that this control opens a new window.</li>
111+
</ol>
101112
</section>
102113
<section class="results">
103-
<h3>Expected Results</h3>
104-
<ul>
105-
<li>Checks #1 and check #2 are true.</li>
106-
</ul>
114+
<h3>Expected Results</h3>
115+
<ul>
116+
<li>Checks #1 and #2 are true.</li>
117+
</ul>
107118
</section>
108-
</section>
109-
<section id="related">
119+
</section>
120+
<section id="related">
110121
<h2>Related Techniques</h2>
111122
<ul>
112-
<li><a href="../html/H83">H83</a></li>
113-
<li><a href="../client-side-script/SCR24">SCR24</a></li>
114-
<li><a href="../general/G200">G200</a></li>
123+
<li><a href="../html/H83">H83</a></li>
124+
<li><a href="../client-side-script/SCR24">SCR24</a></li>
115125
</ul>
116-
</section>
126+
</section>
117127
</body>
118-
</html>
128+
</html>

techniques/general/G54.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>One universally compatible way of doing this is to simply embed a video of the sign language interpreter in the video stream. This has the disadvantage of providing a lower resolution image that cannot be easily enlarged without enlarging the entire image.</p>
77
<div class="note">
88
<p>If the video stream is too small, the sign language interpreter will be indiscernible. When creating a video stream that includes a video of a sign language interpreter, make sure there is a mechanism to play the video stream full screen in the accessibility-supported content technology. Otherwise, be sure the interpreter portion of the video is adjustable to the size it would be had the entire video stream been full screen.</p>
9-
<p>Since sign language is not usually a signed version of the printed language, the author has to decide which sign language to include. Usually the sign language of the primary audience would be used. If intended for multiple audiences, multiple sign languages may be used. Refer to advisory techniques for multiple sign languages.</p>
9+
<p>Since sign language is not usually a signed version of the printed language, the author has to decide which sign language to include. Usually the sign language of the primary audience would be used. If intended for multiple audiences, multiple sign languages may be used.</p>
1010
</div>
1111
</section><section id="examples"><h2>Examples</h2>
1212
<ul>

0 commit comments

Comments
 (0)