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

image-alt rule is showing false error/not recognizing [alt] and [attr.alt] attribute #4547

Open
1 task done
geethadabbara opened this issue Aug 1, 2024 · 2 comments
Open
1 task done
Assignees
Labels
linting Axe-linter issues ungroomed Ticket needs a maintainer to prioritize and label

Comments

@geethadabbara
Copy link

geethadabbara commented Aug 1, 2024

Product

axe Linter

Product Version

No response

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

Describe what you expected the product to do.

image-alt should recognize [alt]/[attr.alt] without showing squiggly error in VSCode

Actual

Describe what the product actually does.
With image-alt: true added in axe-linter.yml rules, it shows false error for <img with [alt]="translations.sampleAlt"/> :
axe-linter (image-alt): Ensures elements have alternate text or a role of none or presentationaxe-linterimage-alt

How to Reproduce

Provide a code sample or link to a webpage that reproduces the issue. Without this, your issue may be closed without investigation.
Screenshot 2024-07-31 at 22 24 06

Additional context

Any thing else we should know about the issue?

@geethadabbara geethadabbara added the ungroomed Ticket needs a maintainer to prioritize and label label Aug 1, 2024
@github-actions github-actions bot added the extension Axe Firefox or Chrome extension issues label Aug 1, 2024
@geethadabbara geethadabbara changed the title image-alt rule is showing false error/not recognizing [alt] or [attr.alt] attribute image-alt rule is showing false error/not recognizing [alt] and [attr.alt] attribute Aug 1, 2024
@straker straker added linting Axe-linter issues and removed extension Axe Firefox or Chrome extension issues labels Aug 5, 2024
@michael-siek
Copy link
Member

Hey @geethadabbara is the code snippet provided angular? If yes, is the file extension .component.html?

@michael-siek michael-siek self-assigned this Aug 5, 2024
@geethadabbara
Copy link
Author

Hey @michael-siek, you are right. its provided in angular's .component.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linting Axe-linter issues ungroomed Ticket needs a maintainer to prioritize and label
Projects
None yet
Development

No branches or pull requests

3 participants