Skip to content

put role="img", if missing, to produced svg element #737

@revelt

Description

@revelt

🚀 Feature Proposal

Consider setting role="img" to <svg>.

Motivation

Because out-of-the-box, Illustrator and many others don't add it, and developers have to do it manually.

Example

Putting role="img" on the svg element ensures it is identified as a graphic.

https://www.tpgi.com/using-aria-enhance-svg-accessibility/

Pitch

Why does this feature belong in the SVGR ecosystem?
It's a no-brainer, a quick improvement to accessibility.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions