iconfu/svg-inject

Consider automatically converting `alt` property to `title` element

waruyama opened this issue · 1 comments

To make accessibility easier and more intuitive to implement, we could automatically convert the image's alt property to the SVG's title element. For accessibility both are used very similarily, so we could provide an "auto-accessibility" oprion that will automatically convert alt property to title element and add role="img". This way the injected SVG would automatically be as accesible as an image element.

Duplicate of #47