Skip to content

Commit 84a8059

Browse files
danikaneaddyosmani
authored andcommitted
improve Lighthouse "Accessibility" and "Best Practices" scores: (#46)
1) https://dequeuniversity.com/rules/axe/1.1/list - removed <br> tag from list 2) https://dequeuniversity.com/rules/axe/1.1/html-lang - added lang="en" as default to <html> tag 3) https://developers.google.com/web/tools/lighthouse/audits/contrast-ratio - using Vue's icon darker color for header and links 4) https://developers.google.com/web/tools/lighthouse/audits/noopener - added rel="noopener" to all links
1 parent e893acb commit 84a8059

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

template/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">

template/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ header {
4848
margin: 0;
4949
height: 56px;
5050
padding: 0 16px 0 24px;
51-
background-color: #4fc08d;
51+
background-color: #35495E;
5252
color: #ffffff;
5353
}
5454

template/src/components/Hello.vue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@
33
<h1>\{{ msg }}</h1>
44
<h2>Essential Links</h2>
55
<ul>
6-
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
7-
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
8-
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
9-
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
10-
<br>
11-
<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>
6+
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
7+
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
8+
<li><a href="https://gitter.im/vuejs/vue" target="_blank" rel="noopener">Gitter Chat</a></li>
9+
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
10+
<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank" rel="noopener">Docs for This Template</a></li>
1211
</ul>
1312
<h2>Ecosystem</h2>
1413
<ul>
15-
<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
16-
<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
17-
<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
18-
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
14+
<li><a href="http://router.vuejs.org/" target="_blank" rel="noopener">vue-router</a></li>
15+
<li><a href="http://vuex.vuejs.org/" target="_blank" rel="noopener">vuex</a></li>
16+
<li><a href="http://vue-loader.vuejs.org/" target="_blank" rel="noopener">vue-loader</a></li>
17+
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
1918
</ul>
2019
</div>
2120
</template>
@@ -32,7 +31,7 @@ export default {
3231
</script>
3332

3433
<!-- Add "scoped" attribute to limit CSS to this component only -->
35-
<style scoped>
34+
<style>
3635
h1, h2 {
3736
font-weight: normal;
3837
}
@@ -48,6 +47,6 @@ li {
4847
}
4948
5049
a {
51-
color: #42b983;
50+
color: #35495E;
5251
}
5352
</style>

0 commit comments

Comments
 (0)