Post #2881287
2026-02-27 09:29 UTC
@matuzo@front-end.social What's the best practice for svgs that are not decorative and part of the content?
My current approach (probably bad, I'm super unexperienced when it comes to anything ARIA):
When inline, I use .
Sometimes also just aria-label. But I often put role="img" to be sure it's represented as img. Not sure if I need that.
Or, have it as a separate .svg file and embed it with
Replies (0)
No replies.