Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would this tell the screen reader to just ignore it? Then you'd lose all accessibility for its content.


I believe role=“img” tells it to behave like one, causing the descriptive text to be read out in its place.


Yeah, that seems bad. The whole point of the diagram was to explain something better than prose could, and now it is lost. I'm thinking the case were someone can make out the shapes/arrows/colors well, but not the text.


In my case, that's not why I'm using the diagram. It's simply a visual thing, to break up a page of text. Purely aesthetic.


The aria-label would be used to describe the content.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: