eslint-plugin-vue-a11y icon indicating copy to clipboard operation
eslint-plugin-vue-a11y copied to clipboard

Error when alt is present.

Open chris-dvlpr opened this issue 6 years ago • 1 comments

Is your feature request related to a problem? Please describe. When I've used :alt="content.imageAltText"

  <img
                        v-if="content.image"
                        :src="imageUrl(content.image, '', 'desktop-image')"
                        :alt="content.imageAltText"
                        :title="content.ImageTitleText"
                        class="img-wrapper__image"
                    >

I seem to get the error error img elements must have an alt prop, either with meaningful text, or an empty string for decorative images vue-a11y/alt-text

I thought this would pass, is there something I'm doing wrong or something I can change to have this pass?

chris-dvlpr avatar Oct 10 '19 08:10 chris-dvlpr

Hi, I have the same problem, any solution ? My alt can be empty because it's provided by a content editor and the image can be decorative and in this case the error trigger.

giovannetti-eric avatar Mar 05 '21 19:03 giovannetti-eric