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

Focusable img elements should fail if they have an empty alt #2583

Open
WilcoFiers opened this issue Oct 22, 2020 · 0 comments
Open

Focusable img elements should fail if they have an empty alt #2583

WilcoFiers opened this issue Oct 22, 2020 · 0 comments
Labels
feat New feature or enhancement rules Issue or false result from an axe-core rule

Comments

@WilcoFiers
Copy link
Contributor

I think it would be good if axe-core distinguished between focusable images and non-focusable ones. For example, I think the following should fail:

<img alt="" tabindex="0" />

To do this, we'd need to split up the image-alt rule. Maybe exclude focusable images from it and have those tested in a separate img-alt-focusable rule?

@WilcoFiers WilcoFiers added feat New feature or enhancement rules Issue or false result from an axe-core rule labels Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or enhancement rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

1 participant