Skip to content

Commit 1b3929a

Browse files
committed
Add alt text to images in Components & Docs
Changed files in `src/` this time.
1 parent 2d887e2 commit 1b3929a

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

src/components/articles/title-text-image.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}}}
44
<article class="pa3 pa5-ns">
55
<h1 class="f2">Title Text with Image</h1>
6-
<img src="/img/space.jpg" class="w-100 f5 measure">
6+
<img src="/img/space.jpg" class="w-100 f5 measure" alt="outer space">
77
<p class="measure lh-copy">
88
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
99
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At

src/components/collections/product-card.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"bodyClass" : "bg-white"
33
}}}
44
<article class="br2 ba dark-gray b--black-10 mv4 w-100 w-50-m w-25-l mw5 center">
5-
<img src="http://placekitten.com/g/600/300" class="db w-100 br2 br--top">
5+
<img src="http://placekitten.com/g/600/300" class="db w-100 br2 br--top" alt="kitty">
66
<div class="pa2 ph3-ns pb3-ns">
77
<div class="dt w-100 mt1">
88
<div class="dtc">

src/components/headers/circle-avatar-title-subtitle.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"bodyClass" : "bg-white"
33
}}}
44
<header class="tc pv4 pv5-ns">
5-
<img src="/img/logo.jpg" class="br-100 pa1 ba b--black-10 h3 w3">
5+
<img src="/img/logo.jpg" class="br-100 pa1 ba b--black-10 h3 w3" alt="avatar">
66
<h1 class="f5 f4-ns fw6 mid-gray">Jasper Whitehouse</h1>
77
<h2 class="f6 gray fw2 ttu tracked">Los Angeles</h2>
88
</header>

src/components/headers/rounded-avatar-title-subtitle.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"bodyClass" : "bg-white"
33
}}}
44
<header class="tc pv4 pv5-ns">
5-
<img src="/img/logo.jpg" class="br3 ba b--black-10 h3 w3">
5+
<img src="/img/logo.jpg" class="br3 ba b--black-10 h3 w3" alt="avatar">
66
<h1 class="f5 f4-ns fw6 black-70">Jasper Whitehouse</h1>
77
<h2 class="f6 black-70 fw2 ttu tracked">Los Angeles</h2>
88
</header>

src/components/layout/four-column-collapse-two.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"bodyClass" : "bg-white"
33
}}}
44
<section class="cf">
5-
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/1.jpg"></div>
6-
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/2.jpg"></div>
7-
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/3.jpg"></div>
8-
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/4.jpg"></div>
5+
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/1.jpg" alt="night sky over house"></div>
6+
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/2.jpg" alt="night sky over water"></div>
7+
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/3.jpg" alt="bay bridge at night"></div>
8+
<div class="fl w-50 w-25-ns"><img class="db w-100" src="/img/4.jpg" alt="night sky over land"></div>
99

1010

1111
</section>

src/templates/docs/floats/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h3 class="f5 book pt4 caps">Float None</h3>
6262
<h3 class="f5 book pt4 caps">Float With Images</h3>
6363
<p class="f3">Originally floats were used to wrap text around images as in the example below.</p>
6464
<div class="cf">
65-
<img src="/img/example-1.jpg" class="fl w4 mr3">
65+
<img src="/img/example-1.jpg" class="fl w4 mr3" alt="example 1">
6666
<p class="measure mtn">
6767
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
6868
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At

src/templates/docs/images/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ <h3 class="f5 book pt4 caps">Image</h3>
2020
<p class="measure lh-copy f5 f4-ns">
2121
This photo is more than 3000 pixels wide. The width is set to 100% to ensure it doesn't bleed off the viewport and always fills its container. In some situations, this will make the image stretch to be larger than it's actual width. To avoid the image stretching past it's width, set max-width instead.
2222
</p>
23-
<code class="f6 db mv3">&lt;img src="/img/over-canvas.jpg" class="w-100"&gt;</code>
24-
<img src="/img/over-canvas.jpg" class="w-100">
23+
<code class="f6 db mv3">&lt;img src="/img/over-canvas.jpg" class="w-100" alt="night sky over land"&gt;</code>
24+
<img src="/img/over-canvas.jpg" class="w-100" alt="night sky over land">
2525
<p class="f5 f4-ns lh-copy measure mt4">The image below is 720 pixels wide, it will fill it's container until the container is wider than 720 pixels.
2626

27-
<code class="f6 db mv3">&lt;img src="/img/under-canvas.jpg" class="mw-100"&gt;</code>
28-
<img src="/img/under-canvas.jpg" class="db mw-100">
27+
<code class="f6 db mv3">&lt;img src="/img/under-canvas.jpg" class="mw-100" alt="night sky over water"&gt;</code>
28+
<img src="/img/under-canvas.jpg" class="db mw-100" alt="night sky over water">
2929
<div class="mt5 cf">
3030
<div class="dib mr4">
3131
<h1 class="f4 ttu tracked fw6">Previous</h1>

0 commit comments

Comments
 (0)