Skip to content

Error when alt is present. #20

Open
@chris-dvlpr

Description

@chris-dvlpr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions