svg-inject icon indicating copy to clipboard operation
svg-inject copied to clipboard

Always add `role="img"` to injected SVG

Open waruyama opened this issue 3 years ago • 0 comments

For better accessibility we should consider to always add role="img" to an injected SVG. Since the original element is always an img element, this role should always be appropriate.

A nice source for SVG accessibility is this one: https://a11y-101.com/development/svg

waruyama avatar May 23 '21 04:05 waruyama