Skip to content

Commit 88b9f45

Browse files
committed
Rebuild docs
1 parent fb0b8e0 commit 88b9f45

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

docs/index.html

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h2 id="title__table-of-contents">Table of Contents</h2>
8888
<h2 id="title__about">About</h2>
8989

9090
<p>
91-
Accessible, semantic markup patterns for HTML content. Uses the full <a rel="external noopener" href="http://html5doctor.com/element-index/"><cite>HTML5 Doctor Element Index</cite></a>, minus the <code>&lt;command&gt;</code> and <code>&lt;menu&gt;</code> tags.
91+
Accessible, semantic markup patterns for HTML content. Uses the full <a rel="external noopener" href="http://html5doctor.com/element-index/"><cite>HTML5 Doctor Element Index</cite></a>, minus the <code translate="no">&lt;command&gt;</code> and <code translate="no">&lt;menu&gt;</code> tags.
9292
</p>
9393
<p>
9494
Reference <a rel="external noopener" href="http://alistairduggin.co.uk/">Alistair Duggin</a>'s <a rel="external noopener" href="http://aduggin.github.io/accessibility-fails/"><cite>Accessibility Fails</cite></a> for common markup pattern accessibility mistakes, and <a rel="external noopener" href="http://pauljadam.com/">Paul J. Adam</a>'s <a rel="external noopener" href="http://pauljadam.com/demos/landmarks.html"><cite>WAI-ARIA Landmarks Site Navigation Structure Demo</cite></a> for semantic, accessible page landmarks.
@@ -137,7 +137,7 @@ <h2>Title</h2>
137137

138138
<h2>Notes:</h2>
139139
<p>
140-
<small>Ensure that headings create a logical order. Apply <abbr="Cascading Style Sheets">CSS</abbr> classes to control visual presentation (e.g. <code>&lt;h2 class=&quot;type-size-medium color-blue-dark&quot;&gt;Our services&lt;/h2&gt;</code> ).</small>
140+
<small>Ensure that headings create a logical order. Apply <abbr="Cascading Style Sheets">CSS</abbr> classes to control visual presentation (e.g. <code translate="no">&lt;h2 class=&quot;type-size-medium color-blue-dark&quot;&gt;Our services&lt;/h2&gt;</code> ).</small>
141141
</p>
142142
</section><!-- End of #section__headings -->
143143

@@ -168,10 +168,10 @@ <h3 id="subtitle__content">Content</h3>
168168
<h4>Notes:</h4>
169169
<ul>
170170
<li>
171-
<small><code>&lt;mark&gt;</code>, <code>&lt;ins&gt;</code>, <code>&lt;del&gt;</code>, and <code>&lt;s&gt;</code> elements are not announced by screen readers. Consider <a rel="external noopener" href="https://developer.paciellogroup.com/blog/2017/12/short-note-on-making-your-mark-more-accessible/">using CSS to indicate their presence</a>.</small>
171+
<small><code translate="no">&lt;mark&gt;</code>, <code translate="no">&lt;ins&gt;</code>, <code translate="no">&lt;del&gt;</code>, and <code translate="no">&lt;s&gt;</code> elements are not announced by screen readers. Consider <a rel="external noopener" href="https://developer.paciellogroup.com/blog/2017/12/short-note-on-making-your-mark-more-accessible/">using CSS to indicate their presence</a>.</small>
172172
</li>
173173
<li>
174-
<small>Use the <code>translate</code> attribute to control <a rel="external noopener" href="https://html.spec.whatwg.org/multipage/dom.html#the-translate-attribute">automatic translation by the browser</a>.</small>
174+
<small>Use the <code translate="no">translate</code> attribute to control <a rel="external noopener" href="https://html.spec.whatwg.org/multipage/dom.html#the-translate-attribute">automatic translation by the browser</a>.</small>
175175
</li>
176176
</ul>
177177
</div><!-- End of #subsection__content -->
@@ -276,13 +276,13 @@ <h3>Definition List</h3>
276276
</div><!-- End of #subsection__lists -->
277277
<div id="subsection__code" aria-labelledby="subtitle__code"><!-- Start of #subsection__code -->
278278
<h3 id="subtitle__code">Code</h3>
279-
<code>
279+
<code translate="no">
280280
<pre>
281281
sudo ipfw pipe 1 config bw 256KByte/s
282282
sudo ipfw add 1 pipe 1 src-port 3000
283283
</pre>
284284
</code>
285-
<samp>
285+
<samp translate="no">
286286
<pre>
287287
~/Sites/boilerplate
288288
❦ ☢ ☭ ☂ ♞
@@ -299,6 +299,12 @@ <h3 id="subtitle__code">Code</h3>
299299
-rw-r--r-- 1 eric staff 58601 Mar 24 11:50 index.html
300300
</pre>
301301
</samp>
302+
303+
<h4>Notes:</h4>
304+
<p>
305+
<small>Apply <code translate="no">translate="no"</code> to markup that contains code examples to prevent keywords from being automatically translated.</small>
306+
</p>
307+
302308
</div><!-- End of #subsection__code -->
303309
<div id="subsection__symbols" aria-labelledby="subtitle__symbols"><!-- Start of #subsection__symbols -->
304310
<h3 id="subtitle__symbols">Symbols</h3>
@@ -319,7 +325,7 @@ <h3 id="subtitle__symbols">Symbols</h3>
319325

320326
<h4>Notes:</h4>
321327
<p>
322-
<small>Certain screen readers will not <a rel="external noopener" href="http://www.deque.com/blog/dont-screen-readers-read-whats-screen-part-1-punctuation-typographic-symbols/">read certain symbols out loud</a>. Use <code>role="definition"</code> in conjunction with <code>aria-label</code> to ensure the symbol is read.</small>
328+
<small>Certain screen readers will not <a rel="external noopener" href="http://www.deque.com/blog/dont-screen-readers-read-whats-screen-part-1-punctuation-typographic-symbols/">read certain symbols out loud</a>. Use <code translate="no">role="definition"</code> in conjunction with <code translate="no">aria-label</code> to ensure the symbol is read.</small>
323329
</p>
324330

325331
</div><!-- End of #subsection__symbols -->
@@ -335,7 +341,7 @@ <h3 id="subtitle__emoji">Emoji</h3>
335341

336342
<h4>Notes:</h4>
337343
<p>
338-
<small>Certain screen readers will not <a rel="external noopener" href="http://tink.uk/accessible-emoji/">expose emoji as images in the accessibility treee</a>. Use <code>role="img"</code> in conjunction with <code>aria-label</code> to ensure the symbol is read.</small>
344+
<small>Certain screen readers will not <a rel="external noopener" href="http://tink.uk/accessible-emoji/">expose emoji as images in the accessibility treee</a>. Use <code translate="no">role="img"</code> in conjunction with <code translate="no">aria-label</code> to ensure the symbol is read.</small>
339345
</p>
340346
</div><!-- End of #subsection__emoji -->
341347
</section><!-- End of #section__text-level -->
@@ -434,7 +440,7 @@ <h2 id="title__tables">Tables</h2>
434440

435441
<h3>Notes:</h3>
436442
<p>
437-
<small>Use <code>id</code> and <code>header</code> attributes for tables with complicated markup (colspans, row headers, etc.).</small>
443+
<small>Use <code translate="no">id</code> and <code translate="no">header</code> attributes for tables with complicated markup (colspans, row headers, etc.).</small>
438444
</p>
439445

440446
</section><!-- End of #section__tables -->
@@ -452,7 +458,7 @@ <h3 id="subsection__details">Details</h3><!-- Start of #subsection__details -->
452458

453459
<h4>Notes:</h4>
454460
<p>
455-
<small>The <code>details</code> element is currently not supported by Microsoft Edge or Internet Explorer. These browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code>open</code> attribute was applied.</small>
461+
<small>The <code translate="no">details</code> element is currently not supported by Microsoft Edge or Internet Explorer. These browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code translate="no">open</code> attribute was applied.</small>
456462
</p><!-- End of #subsection__details -->
457463

458464
<h3 id="subsection__details">Dialog</h3><!-- Start of #subsection__details -->
@@ -465,7 +471,7 @@ <h3 id="subsection__details">Dialog</h3><!-- Start of #subsection__details -->
465471

466472
<h4>Notes:</h4>
467473
<p>
468-
<small>The <code>dialog</code>'s interactivity needs to be controlled with JavaScript.</small>
474+
<small>The <code translate="no">dialog</code>'s interactivity needs to be controlled with JavaScript.</small>
469475
</p><!-- End of #subsection__details -->
470476
</section><!-- End of #section__interactive -->
471477

@@ -515,13 +521,13 @@ <h3 id="subsection__inline-svg">Inline SVG</h3><!-- Start of #subsection__inline
515521
<h3>Notes:</h3>
516522
<ul>
517523
<li>
518-
<small>Be sure to provide values for the <code>height</code> and <code>width</code> attributes so <abbr>SVGs</abbr> won't expand to fill the page if styles don't load.</small>
524+
<small>Be sure to provide values for the <code translate="no">height</code> and <code translate="no">width</code> attributes so <abbr>SVGs</abbr> won't expand to fill the page if styles don't load.</small>
519525
</li>
520526
<li>
521527
<small>Different implementations of <abbr>SVG</abbr> have <a rel="external noopener" href="https://css-tricks.com/accessible-svgs/">different approaches for being made accessible</a>.</small>
522528
</li>
523529
<li>
524-
<small>Add whitespace around the <code>use</code> element in a <abbr>SVG</abbr> icon system to <a rel="external noopener" href="http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-5">prevent a focus bug with Safari 10</a>.</small>
530+
<small>Add whitespace around the <code translate="no">use</code> element in a <abbr>SVG</abbr> icon system to <a rel="external noopener" href="http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-5">prevent a focus bug with Safari 10</a>.</small>
525531
</li>
526532
</ul>
527533

@@ -571,7 +577,7 @@ <h3 id="subsection__audio">Audio</h3><!-- Start of #subsection__audio -->
571577
label="English"
572578
srclang="en"
573579
kind="captions" />
574-
Your browser does not support the <code>&lt;audio&gt;</code> element.
580+
Your browser does not support the <code translate="no">&lt;audio&gt;</code> element.
575581
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a> or <a download href="http://www.noiseaddicts.com/samples_1w72b820/4353.mp3">download a file</a> for offline listening.
576582
</audio><!-- End of #subsection__audio -->
577583

@@ -593,13 +599,13 @@ <h3 id="subsection__video">Video</h3><!-- Start of #subsection__video -->
593599
label="English"
594600
srclang="en"
595601
kind="captions" />
596-
Your browser does not support the <code>&lt;video&gt;</code> element.
602+
Your browser does not support the <code translate="no">&lt;video&gt;</code> element.
597603
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a> or <a download href="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4">download a file</a> for offline viewing.
598604
</video><!-- End of #subsection__video -->
599605

600606
<h3>Notes:</h3>
601607
<p>
602-
<small>Accessibility errors concerning the video's missing audio description should go away once the <code>&lt;track&gt;</code>'s source is linked to a valid caption file.</small>
608+
<small>Accessibility errors concerning the video's missing audio description should go away once the <code translate="no">&lt;track&gt;</code>'s source is linked to a valid caption file.</small>
603609
</p>
604610

605611
<h3 id="subsection__object">Object</h3><!-- Start of #subsection__object -->
@@ -624,7 +630,7 @@ <h3 id="subsection__object">Object</h3><!-- Start of #subsection__object -->
624630
width="640"
625631
height="390">
626632
</embed>
627-
Your browser does not support the <code>&lt;object&gt;</code> element.
633+
Your browser does not support the <code translate="no">&lt;object&gt;</code> element.
628634
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a> or <a rel="external noopener" href="https://www.youtube.com/watch?v=pDHzK3Xe7Yw">view the video on YouTube</a>.
629635
</object><!-- End of #subsection__object -->
630636

@@ -633,13 +639,13 @@ <h3 id="subsection__canvas">Canvas</h3><!-- Start of #subsection__canvas -->
633639
id="myCanvas"
634640
width="400"
635641
height="400">
636-
Your browser does not support the <code>&lt;canvas&gt;</code> element.
642+
Your browser does not support the <code translate="no">&lt;canvas&gt;</code> element.
637643
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a>.
638644
</canvas
639645

640646
<h3>Notes:</h3>
641647
<p>
642-
<small>Add <code>role="presentation"</code> to <code>&lt;track&gt;</code> to <a rel="external noopener" href="https://twitter.com/stevefaulkner/status/1039470607719694336">mute epeated announcement of graphic role by some screen readers</a>.
648+
<small>Add <code translate="no">role="presentation"</code> to <code translate="no">&lt;track&gt;</code> to <a rel="external noopener" href="https://twitter.com/stevefaulkner/status/1039470607719694336">mute epeated announcement of graphic role by some screen readers</a>.
643649
</p>><!-- End of #subsection__canvas -->
644650
</section><!-- End of #section__embedded -->
645651

@@ -1074,16 +1080,16 @@ <h3 id="subtitle__button-states">Buttons</h3>
10741080
<h4>Notes:</h4>
10751081
<ul>
10761082
<li>
1077-
<small>Add <code>type="button"</code> to <code>&lt;button&gt;</code> elements placed outside of forms to prevent some browsers from attempting to submit form data.</small>
1083+
<small>Add <code translate="no">type="button"</code> to <code translate="no">&lt;button&gt;</code> elements placed outside of forms to prevent some browsers from attempting to submit form data.</small>
10781084
</li>
10791085
<li>
1080-
<small>Add <code>pointer-events: none;</code> to <a rel="external noopener" href="https://twitter.com/stowball/status/857707052545613824">inline SVG icons placed in buttons</a>.</small>
1086+
<small>Add <code translate="no">pointer-events: none;</code> to <a rel="external noopener" href="https://twitter.com/stowball/status/857707052545613824">inline SVG icons placed in buttons</a>.</small>
10811087
</li>
10821088
<li>
1083-
<small>Add <code>focusable="false"</code> to SVG inside of a focusable element (links, buttons, etc.) to prevent <a rel="external noopener" href="https://simplyaccessible.com/article/7-solutions-svgs#acc-heading-4">a bug with Internet Explorer</a>.</small>
1089+
<small>Add <code translate="no">focusable="false"</code> to SVG inside of a focusable element (links, buttons, etc.) to prevent <a rel="external noopener" href="https://simplyaccessible.com/article/7-solutions-svgs#acc-heading-4">a bug with Internet Explorer</a>.</small>
10841090
</li>
10851091
<li>
1086-
<small>Use <code>tabindex="0"</code> in conjunction with <code>role="button"</code> to ensure that the text button is focusable. Use <code>cursor: pointer;</code> in the CSS to communicate that it is interactable. Learn more about <a rel="external noopener" href="https://css-tricks.com/use-button-element/"><cite>When To Use The Button Element</cite></a>.</small>
1092+
<small>Use <code translate="no">tabindex="0"</code> in conjunction with <code translate="no">role="button"</code> to ensure that the text button is focusable. Use <code translate="no">cursor: pointer;</code> in the CSS to communicate that it is interactable. Learn more about <a rel="external noopener" href="https://css-tricks.com/use-button-element/"><cite>When To Use The Button Element</cite></a>.</small>
10871093
</li>
10881094
</ul>
10891095

@@ -1268,7 +1274,7 @@ <h4 id="subtitle__buttons">Buttons</h4>
12681274

12691275
<h5>Notes:</h5>
12701276
<p>
1271-
<small>Use <code>:hover</code>, <code>:focus</code>, and <code>:active</code> selectors to control the other button states. Learn more about <a rel="external noopener" href="https://css-tricks.com/user-facing-state/">semantically managing state</a> and using <a rel="external noopener" href="https://medium.com/eightshapes-llc/buttons-in-design-systems-eac3acf7e23#.b1p96hsrw"><cite>Buttons in Design Systems</cite></a>.</small>
1277+
<small>Use <code translate="no">:hover</code>, <code translate="no">:focus</code>, and <code translate="no">:active</code> selectors to control the other button states. Learn more about <a rel="external noopener" href="https://css-tricks.com/user-facing-state/">semantically managing state</a> and using <a rel="external noopener" href="https://medium.com/eightshapes-llc/buttons-in-design-systems-eac3acf7e23#.b1p96hsrw"><cite>Buttons in Design Systems</cite></a>.</small>
12721278
</p>
12731279
</div><!-- End of #subsection__buttons -->
12741280
</fieldset><!-- End of #subsection__states-and-validation -->

0 commit comments

Comments
 (0)