Skip to content

Commit 28464c1

Browse files
committed
Rebuild docs
1 parent f84288a commit 28464c1

File tree

1 file changed

+38
-12
lines changed

1 file changed

+38
-12
lines changed

docs/index.html

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ <h6>Sixth header h6</h6>
118118
<p>
119119
If I didn't have my parents to think about I'd have given in my notice a long time ago, I'd have gone up to the boss and told him just what I think, tell him everything I would, let him know just what I feel. He'd fall right off his desk! And it's a funny sort of business to be sitting up there at your desk, talking down at your subordinates from up there, especially when you have to go right up close because the boss is hard of hearing. Well, there's still some hope; once I've got the money together to pay off my parents' debt to him - another five or six years I suppose - that's definitely what I'll do. That's when I'll make the big change. First of all though, I've got to get up, my train leaves at five."
120120
</p>
121+
122+
<h2>Notes:</h2>
123+
<p>
124+
<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>
125+
</p>
121126
</section><!-- End of #section__headings -->
122127

123128
<hr />
@@ -470,7 +475,7 @@ <h3>Notes:</h3>
470475
<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>
471476
</li>
472477
<li>
473-
<small>Apply <code>focusable=”false”</code> to any <abbr>SVG</abbr> placed inside of <a rel="external noopener" href="http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-5">a focusable element such as a link or button</a>.</small>
478+
<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>
474479
</li>
475480
</ul>
476481

@@ -781,6 +786,11 @@ <h3 id="subtitle__non-text-input">Non-text Input</h3>
781786
type="range" />
782787
</label>
783788

789+
<h4>Notes:</h4>
790+
<p>
791+
<small>Some pointers on <a rel="external noopener" href="https://css-tricks.com/sliding-nightmare-understanding-range-input/">styling the range input</a>.</small>
792+
</p>
793+
784794
</fieldset><!-- End of #subsection__non-text-input -->
785795

786796
<fieldset id="subsection__select" role="region" aria-labelledby="subtitle__select"><!-- Start of #subsection__select -->
@@ -954,7 +964,7 @@ <h3 id="subtitle__checkboxes-and-radio-buttons">Checkboxes and Radio Buttons</h3
954964
id="x-large"
955965
name="beverage"
956966
type="radio" />
957-
Large
967+
Extra Large
958968
</label>
959969

960970
</fieldset>
@@ -966,39 +976,42 @@ <h3 id="subtitle__checkboxes-and-radio-buttons">Checkboxes and Radio Buttons</h3
966976
<h3 id="subtitle__button-states">Buttons</h3>
967977
</legend>
968978

969-
<button>
979+
<button type="button">
970980
Button
971981
</button>
972982

973983
<button
974-
data-button-priority="primary">
984+
data-button-priority="primary"
985+
type="button">
975986
Primary Button
976987
</button>
977988

978989
<button
979-
data-button-priority="secondary">
990+
data-button-priority="secondary"
991+
type="button">
980992
Secondary Button
981993
</button>
982994

983995
<input
984-
name=button""
996+
name="button"
985997
value="Input Button"
986998
type="button" />
987999

988-
<button aria-label="Icon Button">
1000+
<button type="button" aria-label="Icon Button">
9891001
&#9742;
9901002
</button>
9911003

992-
<button>
993-
Button with <abbr>SVG</abbr> icon
1004+
<button type="button">
9941005
<svg
9951006
aria-hidden="true"
9961007
height="16"
9971008
width="16"
1009+
focusable="false"
9981010
viewBox="0 0 16 16"
9991011
xmlns="http://www.w3.org/2000/svg">
10001012
<path fill="#000000" fill-rule="evenodd" d="M8,16 C12.418278,16 16,12.418278 16,8 C16,3.581722 12.418278,0 8,0 C3.581722,0 0,3.581722 0,8 C0,12.418278 3.581722,16 8,16 Z M8.28116557,3 C8.58745219,3 8.8466139,3.10719871 9.05865848,3.32159934 C9.27070306,3.53599997 9.37672376,3.79398367 9.37672376,4.09555819 C9.37672376,4.3971327 9.26952505,4.6539384 9.05512442,4.86598298 C8.84072379,5.07802756 8.58274009,5.18404826 8.28116557,5.18404826 C7.97959106,5.18404826 7.72278536,5.07802756 7.51074078,4.86598298 C7.2986962,4.6539384 7.1926755,4.3971327 7.1926755,4.09555819 C7.1926755,3.79398367 7.2986962,3.53599997 7.51074078,3.32159934 C7.72278536,3.10719871 7.97959106,3 8.28116557,3 Z M9.270702,6.20185716 L9.270702,11.4393321 C9.270702,11.9058302 9.32489036,12.2038662 9.4332687,12.333449 C9.54164704,12.4630318 9.75368844,12.5372462 10.0693993,12.5560947 L10.0693993,12.8105469 L6.5,12.8105469 L6.5,12.5560947 C6.79215031,12.5466704 7.00890374,12.4618539 7.1502668,12.3016424 C7.24450883,12.1932641 7.29162914,11.9058302 7.29162914,11.4393321 L7.29162914,7.58014004 C7.29162914,7.11364196 7.23744078,6.81560599 7.12906244,6.6860232 C7.0206841,6.5564404 6.81099872,6.48222591 6.5,6.4633775 L6.5,6.20185716 L9.270702,6.20185716 Z"/>
10011013
</svg>
1014+
Button with <abbr>SVG</abbr> icon
10021015
</button>
10031016

10041017
<span
@@ -1009,9 +1022,15 @@ <h3 id="subtitle__button-states">Buttons</h3>
10091022

10101023
<h4>Notes:</h4>
10111024
<ul>
1025+
<li>
1026+
<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>
1027+
</li>
10121028
<li>
10131029
<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>
10141030
</li>
1031+
<li>
1032+
<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>
1033+
</li>
10151034
<li>
10161035
<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>
10171036
</li>
@@ -1067,6 +1086,11 @@ <h3 id="subtitle__lockup">Lockup</h3>
10671086
I agree
10681087
</label>
10691088

1089+
<h4>Notes:</h4>
1090+
<p>
1091+
<small>Place messaging above the input field so as to not be lost when magnification or focus on mobile occurs.</small>
1092+
</p>
1093+
10701094
</fieldset><!-- End of #subsection__lockup -->
10711095

10721096
<fieldset id="subsection__states-and-validation" role="region" aria-labelledby="subtitle__states-and-validation"><!-- Start of #subsection__states-and-validation -->
@@ -1180,18 +1204,20 @@ <h4 id="subtitle__input">Input</h4>
11801204
<div id="subsection__buttons" role="region" aria-labelledby="subtitle__buttons"><!-- Start of #subsection__buttons -->
11811205
<h4 id="subtitle__buttons">Buttons</h4>
11821206
<button
1183-
disabled>
1207+
disabled
1208+
type="button">
11841209
Disabled
11851210
</button>
11861211

11871212
<button
1188-
aria-busy="true">
1213+
aria-busy="true"
1214+
type="button">
11891215
Loading
11901216
</button>
11911217

11921218
<h5>Notes:</h5>
11931219
<p>
1194-
<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://medium.com/eightshapes-llc/buttons-in-design-systems-eac3acf7e23#.b1p96hsrw">Buttons in Design Systems</a>.</small>
1220+
<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>
11951221
</p>
11961222
</div><!-- End of #subsection__buttons -->
11971223
</fieldset><!-- End of #subsection__states-and-validation -->

0 commit comments

Comments
 (0)