Skip to content

Commit

Permalink
Fixed #3593 - Avatar - Image Alt text Accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 2, 2023
1 parent 7c17909 commit ef84829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/avatar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<slot>
<span v-if="label" class="p-avatar-text">{{ label }}</span>
<span v-else-if="icon" :class="iconClass"></span>
<img v-else-if="image" :src="image" @error="onError" />
<img v-else-if="image" :src="image" :alt="ariaLabel" @error="onError" />
</slot>
</div>
</template>
Expand Down

0 comments on commit ef84829

Please sign in to comment.