You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
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
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
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
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/
The text was updated successfully, but these errors were encountered: