fix(theme): always add alt attribute to images (#1348)

pull/1372/head
Gurkiran Singh 2 years ago committed by GitHub
parent 9c04a10c4d
commit a621c6910c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" />

Loading…
Cancel
Save