Skip to content

Commit 1d384ba

Browse files
committed
Removed redundant roles
1 parent 35465ff commit 1d384ba

9 files changed

+15
-15
lines changed

partials/section.about.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<aside id="section__about" role="complementary" aria-labelledby="title__about"><!-- Start of #section__about -->
1+
<aside id="section__about" aria-labelledby="title__about"><!-- Start of #section__about -->
22
<h2 id="title__about">About</h2>
33

44
<p>

partials/section.embedded.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section id="section__embedded" role="region" aria-labelledby="title__embedded"><!-- Start of #section__embedded -->
1+
<section id="section__embedded" aria-labelledby="title__embedded"><!-- Start of #section__embedded -->
22
<h2 id="title__embedded">Embedded</h2>
33

44
<h2 id="subsection__image">Image</h2><!-- Start of #subsection__image -->

partials/section.footer.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<footer id="section__credit" role="contentinfo" aria-labelledby="title__credit"><!-- Start of #section__credit -->
1+
<footer id="section__credit" aria-labelledby="title__credit"><!-- Start of #section__credit -->
22
<h2 id="title__credit">Credit</h2>
33

44
<p>

partials/section.forms.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section id="section__forms" role="region" aria-labelledby="title__forms"><!-- Start of #section__forms -->
1+
<section id="section__forms" aria-labelledby="title__forms"><!-- Start of #section__forms -->
22
<h2 id="title__forms">Forms</h2>
33

44
<form>

partials/section.headings.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section id="section__headings" role="region" aria-labelledby="title__headings"><!-- Start of #section__headings -->
1+
<section id="section__headings" aria-labelledby="title__headings"><!-- Start of #section__headings -->
22
<h2 id="title__headings">Headings</h2>
33

44
<h1>First Header h1</h1>

partials/section.project-link.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<aside id="section__project-link" role="complementary" aria-labelledby="title__project"><!-- Start of #section__project-link -->
1+
<aside id="section__project-link" aria-labelledby="title__project"><!-- Start of #section__project-link -->
22
<a href="https://github.com/ericwbailey/accessible-html-content-patterns">
33
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 250 250" fill="#ffffff" style="position: absolute; top: 0; right: 0">
44
<title id="title__project" style="border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;">View project repository on GitHub</title>

partials/section.table-of-contents.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav id="section__table-of-contents" role="navigation" aria-labelledby="title__table-of-contents"><!-- Start of #section__table-of-contents -->
1+
<nav id="section__table-of-contents" aria-labelledby="title__table-of-contents"><!-- Start of #section__table-of-contents -->
22
<h2 id="title__table-of-contents">Table of Contents</h2>
33
<ul>
44
<li><a href="#section__about">About</a></li>

partials/section.tables.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section id="section__tables" role="region" aria-labelledby="title__tables"><!-- Start of #section__tables -->
1+
<section id="section__tables" aria-labelledby="title__tables"><!-- Start of #section__tables -->
22
<h2 id="title__tables">Tables</h2>
33

44
<table>

partials/section.text-level.hbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<section id="section__text-level" role="region" aria-labelledby="title__text-level"><!-- Start of #section__text-level -->
1+
<section id="section__text-level" aria-labelledby="title__text-level"><!-- Start of #section__text-level -->
22
<h2 id="title__text-level">Text-level</h2>
33

4-
<div id="subsection__content" role="region" aria-labelledby="subtitle__content"><!-- Start of #subsection__content -->
4+
<div id="subsection__content" aria-labelledby="subtitle__content"><!-- Start of #subsection__content -->
55
<h3 id="subtitle__content">Content</h3>
66
<p>
77
And he <em>looked</em> over at <strong>the alarm clock</strong>, ticking on the <i>chest</i> of <b>drawers</b>. "God in <u>Heaven</u>!" he <s>thought</s>. It was <small>half past six</small> and the <abbr>hands</abbr> were <q>quietly moving forwards</q>, it was even later <cite>than half past</cite>, more <dfn>like quarter to seven</dfn>. Had the <sub>alarm</sub> clock not <sup>rung</sup>? He <time>could</time> see from the <code>bed that it had been set</code> for four <kbd>o'clock</kbd> as it <samp>should</samp> have <var>been</var>; it <mark>certainly</mark> must have rung.
@@ -18,7 +18,7 @@
1818
Yes, but was it <bdi>possible</bdi> to <bdo>quietly</bdo> sleep <ruby>through</ruby> that <rt>furniture-rattling</rt> noise? <rp>True</rp>, he <span>had not slept</span> peacefully, but <del>probably</del> all the more <ins>deeply</ins> because of that. What should he do now? The next train went at seven; if he were to catch that he would have to rush like mad and the collection of samples was still not packed, and he did not at all feel particularly fresh and lively.
1919
</p>
2020
</div><!-- End of #subsection__content -->
21-
<div id="subsection__links" role="region" aria-labelledby="subtitle__links"><!-- Start of #subsection__links -->
21+
<div id="subsection__links" aria-labelledby="subtitle__links"><!-- Start of #subsection__links -->
2222
<h3 id="subtitle__links">Links</h3>
2323
<p>
2424
And even if he did catch the <a href="#">train</a> he would not avoid his boss's anger as the <a href="#" rel="external noopener">office assistant</a> would have been there to see the five o'clock train go, he would have put in his report about <a href="https://twitter.com/twitter" rel="external noopener">Gregor</a>'s not being there a long time ago. The office assistant was the boss's man, spineless, and with no understanding. What about if he reported sick? But that would be <a href="#">extremely strained and suspicious as in fifteen years of service Gregor had never once yet been ill</a>. His boss would certainly come round with the doctor from the medical insurance company, accuse his parents of having a lazy son, and accept the doctor's recommendation not to make any claim as the doctor believed that no-one was ever ill but that many were workshy. And what's more, would he have been entirely wrong in this case? Gregor did in fact, apart from excessive sleepiness after sleeping for so long, feel completely well and even felt much hungrier than usual.
@@ -30,7 +30,7 @@
3030
</p>
3131
</a>
3232
</div><!-- End of #subsection__links -->
33-
<div id="subsection__lists" role="region" aria-labelledby="subtitle__lists"><!-- Start of #subsection__lists -->
33+
<div id="subsection__lists" aria-labelledby="subtitle__lists"><!-- Start of #subsection__lists -->
3434
<h3 id="subtitle__lists">Lists</h3>
3535
<h3>Unordered List</h3>
3636
<ul>
@@ -111,7 +111,7 @@
111111
</dd>
112112
</dl>
113113
</div><!-- End of #subsection__lists -->
114-
<div id="subsection__code" role="region" aria-labelledby="subtitle__code"><!-- Start of #subsection__code -->
114+
<div id="subsection__code" aria-labelledby="subtitle__code"><!-- Start of #subsection__code -->
115115
<h3 id="subtitle__code">Code</h3>
116116
<code>
117117
<pre>
@@ -137,7 +137,7 @@ drwxr-xr-x 9 eric staff 306 Mar 24 13:36 .git/
137137
</pre>
138138
</samp>
139139
</div><!-- End of #subsection__code -->
140-
<div id="subsection__symbols" role="region" aria-labelledby="subtitle__symbols"><!-- Start of #subsection__symbols -->
140+
<div id="subsection__symbols" aria-labelledby="subtitle__symbols"><!-- Start of #subsection__symbols -->
141141
<h3 id="subtitle__symbols">Symbols</h3>
142142
<ul>
143143
<li><span role="definition" aria-label="Plus">+</span></li>
@@ -157,7 +157,7 @@ drwxr-xr-x 9 eric staff 306 Mar 24 13:36 .git/
157157
<small>Note: 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>
158158
</p>
159159
</div><!-- End of #subsection__symbols -->
160-
<div id="subsection__emoji" role="region" aria-labelledby="subtitle__emoji"><!-- Start of #subsection__emoji -->
160+
<div id="subsection__emoji" aria-labelledby="subtitle__emoji"><!-- Start of #subsection__emoji -->
161161
<h3 id="subtitle__emoji">Emoji</h3>
162162
<ul>
163163
<li><span role="img" aria-label="Peach emoji">🍑</span></li>

0 commit comments

Comments
 (0)