Skip to content

Commit 405d236

Browse files
authored
fix: add alt attribute to slide images for accessibility (#98)
Add an empty alt attribute to the slide images on the home page to improve accessibility and comply with best practices for decorative images. This change helps screen readers ignore these images, enhancing the user experience for visually impaired users.
1 parent 91a499b commit 405d236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/PageHome.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
class="relative px-2 py-1 md:px-3 md:py-2 font-grest uppercase border border-secondary bg-secondary/25 backdrop-blur-lg hover:bg-secondary/50 transition-colors">
7676
{{ slide.name }}</RouterLink>
7777
</div>
78-
<img :src="slide.image" class="object-contain h-full w-full" />
78+
<img :src="slide.image" class="object-contain h-full w-full" alt="" />
7979
</div>
8080
</Slide>
8181

0 commit comments

Comments
 (0)