Skip to content

Commit

Permalink
fix(theme): always add alt attribute to images (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
g4rry420 committed Sep 20, 2022
1 parent 9c04a10 commit a621c69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/theme-default/components/VPImage.vue
Expand Up @@ -20,6 +20,7 @@ export default {
class="VPImage"
v-bind="typeof image === 'string' ? $attrs : { ...image, ...$attrs }"
:src="withBase(typeof image === 'string' ? image : image.src)"
:alt="typeof image === 'string' ? '' : (image.alt || '')"
/>
<template v-else>
<VPImage class="dark" :image="image.dark" v-bind="$attrs" />
Expand Down

0 comments on commit a621c69

Please sign in to comment.