Skip to content

Commit

Permalink
feat(ListItem): add alt text to image element
Browse files Browse the repository at this point in the history
accessibility improvement
  • Loading branch information
itsTPM committed Mar 19, 2024
1 parent 4429b36 commit fe00105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/List/ListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const iconSrc = new URL(`/src/assets/icons/${props.item.icon}`, import.meta.url)
<template>
<div
class="flex select-none flex-col items-center justify-center rounded-lg border bg-black/20 p-3 transition motion-safe:hover:scale-110">
<img :src="iconSrc" alt="" class="h-16 w-16 object-contain" draggable="false" />
<img :src="iconSrc" class="h-16 w-16 object-contain" draggable="false" :alt="`${item.name} Logo`" />
<span>{{ item.name }}</span>
</div>
</template>

0 comments on commit fe00105

Please sign in to comment.