Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when alt is present. #20

Open
chris-dvlpr opened this issue Oct 10, 2019 · 1 comment
Open

Error when alt is present. #20

chris-dvlpr opened this issue Oct 10, 2019 · 1 comment

Comments

@chris-dvlpr
Copy link

chris-dvlpr commented Oct 10, 2019

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?

BasitAli added a commit to BasitAli/eslint-plugin-vue-a11y that referenced this issue Oct 22, 2019
BasitAli added a commit to BasitAli/eslint-plugin-vue-a11y that referenced this issue Oct 22, 2019
marcus-herrmann added a commit to vue-accessibility/eslint-plugin-vue-a11y that referenced this issue Jan 19, 2020
marcus-herrmann added a commit to vue-accessibility/eslint-plugin-vue-a11y that referenced this issue Jan 19, 2020
@giovannetti-eric
Copy link

giovannetti-eric commented Mar 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants