Fixed #3593 - Avatar - Image Alt text Accessibility

pull/3699/head
mertsincan 2023-03-02 10:32:53 +00:00
parent 7c1790921f
commit ef84829042
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<slot> <slot>
<span v-if="label" class="p-avatar-text">{{ label }}</span> <span v-if="label" class="p-avatar-text">{{ label }}</span>
<span v-else-if="icon" :class="iconClass"></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> </slot>
</div> </div>
</template> </template>