Skip to content

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

Closed
@saskaak

Description

@saskaak

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/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions