Skip to content

Commit

Permalink
fix: Manually adjust indent for ECLint check
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Feb 28, 2019
1 parent 41b3b7a commit 836ff83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions aria-practices-DeletedSectionsArchive.html
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ <h2> General Steps for Building an Accessible Widget with WAI-ARIA</h2>
<p class="ednote">Commented out link to conference paper, which a) was broken, and b) we should have more canonical references than conference papers for things like this.</p>
<p>For our toolbar, we have chosen to have the toolbar manage the focus for its children and through the use of the <a class="property-reference" href="#aria-activedescendant">aria-activedescendant</a> property. We have also chosen to have the toolbar receive focus based on the tab order by using <code>tabindex</code>. In order to use <a class="property-reference" href="#aria-activedescendant">aria-activedescendant</a>, each focusable descendant must have an assigned ID. </p>
<pre class="example highlight"> &lt;head&gt;
&lt;script&gt;
&lt;script&gt;
&#8230;
function optionKeyEvent(event)
{
Expand Down Expand Up @@ -1752,10 +1752,10 @@ <h4> Miscellaneous XHTML Section Roles</h4>
&lt;/p&gt;</pre>
<p>The following is an example using a definition list:</p>
<pre class="example highlight">&lt;dl&gt;
&lt;dt id="anathema"&gt;anthema&lt;/dt&gt;
&lt;dd role="definition" aria-labelledby="anathema"&gt;a ban or curse solemnly pronounced by ecclesiastical authority and accompanied by
&lt;dt id="anathema"&gt;anthema&lt;/dt&gt;
&lt;dd role="definition" aria-labelledby="anathema"&gt;a ban or curse solemnly pronounced by ecclesiastical authority and accompanied by
excommunication&lt;/dd&gt;
&lt;dd role="definition" aria-labelledby="anathema"&gt;a vigorous denunciation : cursor&lt;/dd&gt;
&lt;dd role="definition" aria-labelledby="anathema"&gt;a vigorous denunciation : cursor&lt;/dd&gt;
&lt;dt id="homily"&gt;homily&lt;/dt&gt;
&lt;dd role="definition" aria-labelledby="homily"&gt;a usually short sermon&lt;/dd&gt;

Expand Down Expand Up @@ -2166,7 +2166,7 @@ <h4> The Owns Relationship</h4>
<p>In addition to WAI-ARIA role and state information, for a document element,
an assistive technology needs to convey its context. In
the case of a <span class="role-reference">treeitem</span>, it is important to know the parent (container),
which may provide a folder depth and the number of siblings in the folder. This containment hierarchy can often be determined by
which may provide a folder depth and the number of siblings in the folder. This containment hierarchy can often be determined by
the DOM tree, as it provides parent, siblings, and children for a given
document element. That said, the DOM hierarchy is rigid and non cyclical in
that each node may only have one parent. In some situations, a child
Expand Down Expand Up @@ -2727,7 +2727,7 @@ <h2>Math</h2>
<p>Similarly:</p>
<p><code>
&lt;i&gt;f&lt;/i&gt;(&lt;i&gt;x&lt;/i&gt;)
= &lt;i&gt;x&lt;/i&gt;&lt;sup&gt;2&lt;/sup&gt; + &lt;i&gt;x&lt;/i&gt; - 2
= &lt;i&gt;x&lt;/i&gt;&lt;sup&gt;2&lt;/sup&gt; + &lt;i&gt;x&lt;/i&gt; - 2
</code></p>
<p>Accessible example of the same function, using the math role, appropriate label, and MathML rendering: </p>
<p class="ednote">Todo: add aria-label here also</p>
Expand Down Expand Up @@ -3277,15 +3277,15 @@ <h3> Use of XHTML Role Landmarks to Improve Document Navigation</h3>
.
&lt;div id="leftnav"&gt;
&lt;h2 class="nav" id="leftnav_label"&gt;Career Center Services&lt;/h2&gt;
&lt;ul title="Career Center Services" role="navigation" aria-labelledby="leftnav_label"&gt;
&lt;ul title="Career Center Services" role="navigation" aria-labelledby="leftnav_label"&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Career Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Career Counseling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Pre-Health Advising&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Services&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Workshops&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Resource Center&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.uiuc.edu/"&gt;Question Board/FAQ&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;

...

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"example": "examples"
},
"scripts": {
"fix": "npm run lint:es -- --fix && npm run lint:css -- --fix && eclint fix .",
"fix": "npm run lint:es -- --fix && npm run lint:css -- --fix && eclint fix \"**/*.{js,html,css,md}\"",
"lint": "npm run lint:es && npm run lint:css && npm run vnu-jar && npm run lint:ec",
"lint:css": "stylelint **/*.css",
"lint:ec": "eclint check \"**/*.{js,html,css,md}\"",
Expand Down

0 comments on commit 836ff83

Please sign in to comment.