Skip to content

Commit cf941fa

Browse files
kentyungeyyx990803
authored andcommitted
Add alt text to images to help with screen reader accessibility (#1676)
1 parent 8dfad33 commit cf941fa

File tree

5 files changed

+33
-9
lines changed

5 files changed

+33
-9
lines changed

themes/vue/_config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,79 @@ platinum_sponsors:
1313
alt_img: bit.png
1414
- url: http://tooltwist.com/
1515
img: tooltwist.png
16+
name: tooltwist
1617
- url: https://vueschool.io/?utm_source=Vuejs.org&utm_medium=Banner&utm_campaign=Sponsored%20Banner&utm_content=V1
1718
img: vueschool.png
19+
name: vue school
1820
- url: https://vehikl.com/
1921
img: vehikl.png
22+
name: vehikl
2023

2124
gold_sponsors:
2225
- url: https://laravel.com
2326
img: laravel.png
27+
name: laravel
2428
- url: https://htmlburger.com
2529
img: htmlburger.png
30+
name: html burger
2631
- url: https://chaitin.cn/en/
2732
img: chaitin.png
33+
name: chaitin
2834
- url: https://www.frontenddeveloperlove.com/
2935
img: frontend-love.png
36+
name: frontend love
3037
- url: https://onsen.io/vue/
3138
img: onsen-ui.png
39+
name: onsen ui
3240
- url: https://vuetifyjs.com
3341
img: vuetify.png
42+
name: vuetify
3443
- url: https://neds.com.au/
3544
img: neds.png
45+
name: neds
3646
- url: https://hackr.io/tutorials/learn-vue-js
3747
img: hackr-io.png
48+
name: hacker io
3849
- url: https://icons8.com/
3950
img: icons8.png
51+
name: icons 8
4052
- url: https://vuejobs.com/?ref=vuejs
4153
img: vuejobs.png
54+
name: vue jobs
4255
- url: https://codepilot.ai
4356
img: codepilot.png
57+
name: code pilot
4458
- url: https://teamextension.io/
4559
img: teamextension.png
60+
name: team extension
4661
- url: http://aaha.co/
4762
img: aaha.png
63+
name: aaha
4864
- url: https://www.valuecoders.com
4965
img: valuecoders.png
66+
name: value coders dot org
5067
- url: https://www.nsoft.com/careers/
5168
img: nsoft.png
69+
name: n soft
5270
- url: https://www.vuemastery.com/
5371
img: vuemastery.png
72+
name: vue mastery
5473

5574
silver_sponsors:
5675
- url: https://dopamine.bg/
5776
img: dopamine.png
77+
name: dopamine
5878

5979
bronze_sponsors:
6080
- url: http://tighten.co/
6181
img: http://i.imgur.com/T7fQYLT.png
82+
name: tighten co
6283
- url: https://alligator.io
6384
img: https://alligator.io/images/alligator-logo.svg
85+
name: alligator dot io
6486
- url: https://www.accelebrate.com/
6587
img: https://www.accelebrate.com/assets/images/accelebrate_logo@2x.png
88+
name: accelebrate
6689
- url: https://pullstring.com
6790
img: https://i.imgur.com/hQHW6TB.png
91+
name: pull string

themes/vue/layout/index.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div id="hero">
1010
<div class="inner">
1111
<div class="left">
12-
<img class="hero-logo" src="<%- url_for("/images/logo.png") %>">
12+
<img class="hero-logo" src="<%- url_for("/images/logo.png") %>" alt="vue logo">
1313
</div><div class="right">
1414
<h2 class="vue">Vue.js</h2>
1515
<h1>
@@ -31,7 +31,7 @@
3131
<div id="special-sponsor">
3232
<h3>Special Sponsor</h3>
3333
<a href="https://stdlib.com/" target="_blank">
34-
<img src="/images/stdlib.png" style="width:160px">
34+
<img src="/images/stdlib.png" style="width:160px" alt="Standard Library Logo">
3535
<br>
3636
<span>Function as a Service Platform and Library</span>
3737
</a>

themes/vue/layout/partials/header.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="header">
22
<a id="logo" href="<%- url_for("/") %>">
3-
<img src="<%- url_for("/images/logo.png") %>">
3+
<img src="<%- url_for("/images/logo.png") %>" alt="vue logo">
44
<span>Vue.js</span>
55
</a>
66
<ul id="nav">

themes/vue/layout/partials/sponsors.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<%_ for (const sponsor of theme.platinum_sponsors) {_%>
44
<a href="<%- sponsor.url %>" target="_blank" style="width: 160px;">
5-
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 160px;">
5+
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 160px;" alt="<%-sponsor.name-%>">
66
</a>
77
<%_ } _%>
88
<br>
99
<br>
1010
<%_ for (const sponsor of theme.gold_sponsors) {_%>
1111
<a href="<%- sponsor.url %>" target="_blank" style="width: 120px;">
12-
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 120px;">
12+
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 120px;" alt="<%-sponsor.name-%>">
1313
</a>
1414
<%_ } _%>
1515
<br>
@@ -19,13 +19,13 @@
1919
<div class="open-collective-sponsors">
2020
<h3>OpenCollective Sponsors</h3>
2121
<h4>Platinum</h4>
22-
<%_ for (let i = 0; i < 3; i++) {_%>
22+
<%_ for (let i = 0; i < 2; i++) {_%>
2323
<a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/<%- i %>/website" target="_blank">
2424
<img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/<%- i %>/avatar.svg">
2525
</a>
2626
<%_ } _%>
2727
<h4>Gold</h4>
28-
<%_ for (let i = 0; i < 10; i++) {_%>
28+
<%_ for (let i = 0; i < 8; i++) {_%>
2929
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/<%- i %>/website" target="_blank">
3030
<img src="https://opencollective.com/vuejs/tiers/gold-sponsors/<%- i %>/avatar.svg">
3131
</a>

themes/vue/layout/partials/sponsors_sidebar.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div>
55
<%_ for (const sponsor of theme.special_sponsors) {_%>
66
<a href="<%- sponsor.url %>" target="_blank" class="logo">
7-
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>">
7+
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>" alt="<%-sponsor.name-%>">
88
</a>
99
<%_ } _%>
1010
</div>
@@ -17,7 +17,7 @@
1717
<div>
1818
<%_ for (const sponsor of theme.platinum_sponsors) {_%>
1919
<a href="<%- sponsor.url %>" target="_blank" class="logo">
20-
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>">
20+
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>" alt="<%-sponsor.name-%>">
2121
</a>
2222
<%_ } _%>
2323
</div>

0 commit comments

Comments
 (0)