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

false-positive: button-name fails on img with role=button #2577

Closed
straker opened this issue Oct 21, 2020 · 1 comment
Closed

false-positive: button-name fails on img with role=button #2577

straker opened this issue Oct 21, 2020 · 1 comment
Assignees
Labels
fix Bug fixes rules Issue or false result from an axe-core rule
Milestone

Comments

@straker
Copy link
Contributor

straker commented Oct 21, 2020

This was brought to our attention. The following code fails the button-name rule as that rule does not look at alt attributes. All our supported AT/browsers read the alt of the image correctly.

<img src="foo.png" tabindex="0" alt="my custom img" role="button"/>
@padmavemulapati
Copy link

Verified with the fix in latest axe-core(4.0.2v) dated 2.10.2020
Not seeing button-name rule failure. At the same time was able to reproduce it with 3.5.4
image

@WilcoFiers WilcoFiers added this to the axe-core 4.1 milestone Nov 10, 2020
@straker straker closed this as completed Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

3 participants