Skip to content

Commit 09a37f5

Browse files
kennethlarsenphated
authored andcommitted
A11y improvements (#79)
* Improved color contrast to meet AA standards * Added missing alt tags to images * Added landmarkds
1 parent 2f63046 commit 09a37f5

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ div.logo-cli {
7979
margin-top: 10px;
8080
}
8181
p.paragraph {
82-
color: rgba(0, 0, 0, .5);
82+
color: #767676;
8383
}
8484
.text-center {
8585
text-align: center;
@@ -358,7 +358,7 @@ p.paragraph {
358358
color: rgba(130 ,140,91,1);
359359
}
360360
.hljs-built_in {
361-
color: rgba(112,75,40,1);
361+
color: #7b5c44;
362362
}
363363
.editor-prefixed:before {
364364
content: "$ ";

index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
</head>
1212

1313
<body>
14-
<header class="header">
14+
<header class="header" role="banner">
1515
<div class="container-lrg">
1616
<div class="col-12 spread aligncenter">
1717
<a class="logo mobile-hide">
18-
<img class="logo-img" src="img/gulp-white-text.svg">
18+
<img class="logo-img" src="img/gulp-white-text.svg" alt="Gulp">
1919
</a>
20-
<div class="nav mobile-col-12 spread">
20+
<nav class="nav mobile-col-12 spread" role="navigation">
2121
<a class="nav-link" href="https://github.com/gulpjs/gulp/blob/master/docs/API.md">Docs</a>
2222
<a class="nav-link" href="https://gulpjs.com/plugins">Plugins</a>
2323
<a class="nav-link" href="https://twitter.com/gulpjs">Twitter</a>
2424
<a class="nav-link" href="https://github.com/gulpjs/gulp/blob/master/CONTRIBUTING.md">Contribute</a>
25-
</div>
25+
</nav>
2626
</div>
2727
</div>
2828

@@ -62,24 +62,24 @@ <h2 class="paragraph">
6262
</div>
6363
</header>
6464

65-
<div class="feature3">
65+
<main class="feature3" role="main">
6666
<div class="container-lrg flex baseline">
6767
<div class="col-4">
68-
<b class="svg center"><img class="mask-img" src="img/browser.svg"></b>
68+
<b class="svg center"><img class="mask-img" src="img/browser.svg" alt=""></b>
6969
<h3 class="subheading center">Simple Usage</h3>
7070
<p class="paragraph">
7171
By preferring code over configuration, node best practices, and a minimal API surface - gulp makes things simple like never before.
7272
</p>
7373
</div>
7474
<div class="col-4">
75-
<b class="svg center"><img class="mask-img" src="img/guage.svg"></b>
75+
<b class="svg center"><img class="mask-img" src="img/guage.svg" alt=""></b>
7676
<h3 class="subheading center">Efficient Builds</h3>
7777
<p class="paragraph">
7878
Using the power of node streams, gulp gives you fast builds that don't write intermediary files to disk.
7979
</p>
8080
</div>
8181
<div class="col-4">
82-
<b class="svg center"><img class="mask-img" src="img/atom.svg"></b>
82+
<b class="svg center"><img class="mask-img" src="img/atom.svg" alt=""></b>
8383
<h3 class="subheading center">Quality Ecosystem</h3>
8484
<p class="paragraph">
8585
By enforcing strict guidelines, we ensure our plugins stay simple and work as expected.
@@ -117,7 +117,7 @@ <h3 class="subheading">
117117
</p>
118118
</div>
119119
</div>
120-
</div>
120+
</main>
121121

122122
<div class="whatisgulp">
123123
<div class="container-lrg">

js/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@
5959
link.className = 'supporter supporter--skeleton';
6060
if (supporter.website) {
6161
link.href = supporter.website;
62+
img.alt = supporter.website;
6263
} else if (supporter.twitterHandle) {
6364
link.href = 'https://twitter.com/' + supporter.twitterHandle
65+
img.alt = supporter.twitterHandle;
6466
} else {
6567
link.href = 'https://opencollective.com/' + supporter.slug
68+
img.alt = supporter.slug;
6669
}
6770

6871
link.appendChild(img);

0 commit comments

Comments
 (0)