Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 81d6e8b

Browse files
authored
fix: Add img alt (#309)
1 parent 77877d4 commit 81d6e8b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/Newsletter.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export function Newsletter() {
3030
Awards
3131
</h3>
3232
<div className="my-4 flex flex-wrap items-center justify-evenly gap-4">
33-
<Image src={CommunityAward} width="500" className="rounded" />
34-
<Image src={TeacherAward} width="500" className="rounded" />
33+
<Image alt={"Community Award"} src={CommunityAward} width="500" className="rounded" />
34+
<Image alt={"Teacher Award"} src={TeacherAward} width="500" className="rounded" />
3535
</div>
3636
</div>
3737
</Container>

src/components/PrimaryFeatures.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function PrimaryFeatures() {
130130
<Image
131131
className="w-full"
132132
src={feature.image}
133-
alt=""
133+
alt={`image of ${feature.title}`}
134134
priority
135135
sizes="(min-width: 1024px) 67.8125rem, (min-width: 640px) 100vw, 45rem"
136136
/>

src/components/SecondaryFeatures.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function FeaturesDesktop() {
125125
<Image
126126
className="w-full"
127127
src={feature.image}
128-
alt=""
128+
alt={feature.name}
129129
sizes="52.75rem"
130130
/>
131131
</div>

src/components/Testimonials.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function Testimonials() {
129129
testimonial.author.username +
130130
'.png'
131131
}
132-
alt=""
132+
alt={testimonial.name}
133133
width={56}
134134
height={56}
135135
/>

0 commit comments

Comments
 (0)