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

no-redundant-roles should allow (SVG) images with role="img" #936

Open
saskaak opened this issue May 31, 2023 · 3 comments
Open

no-redundant-roles should allow (SVG) images with role="img" #936

saskaak opened this issue May 31, 2023 · 3 comments
Assignees

Comments

@saskaak
Copy link

saskaak commented May 31, 2023

Hello!

As far as I know<img src="some-image.svg" role="img"> is an actual pattern that can be used to increase browser/screenreader support for SVG images specifically.

Thus, no-redundant-roles should allow images with role="img".

See the difference here comparing pattern 1 (no explicit role) and pattern 2 (with explicit role): https://www.smashingmagazine.com/2021/05/accessible-svg-patterns-comparison/

@saskaak saskaak changed the title no-redundant-roles should allow (SVG) images with role="img" no-redundant-roles should allow (SVG) images with role="img" May 31, 2023
@saskaak saskaak changed the title no-redundant-roles should allow (SVG) images with role="img" no-redundant-roles should allow (SVG) images with role="img" May 31, 2023
@saskaak saskaak changed the title no-redundant-roles should allow (SVG) images with role="img" no-redundant-roles should allow (SVG) images with role="img" May 31, 2023
@preetsahil

This comment was marked as resolved.

@ljharb

This comment was marked as resolved.

@preetsahil

This comment was marked as resolved.

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

4 participants