←back to thread

Monodraw

(monodraw.helftone.com)
603 points mafro | 1 comments | | HN request time: 0.205s | source
Show context
billyp-rva ◴[] No.45038134[source]
Accessibility question: how do screen readers handle ascii art-style diagrams like this? It seems like they would be overwhelmed by the lines.
replies(1): >>45039616 #
jen729w ◴[] No.45039616[source]
They don’t. You should aria-label it thus:

    role="img"
    aria-label="A styled box using monospace box-drawing characters. Its header is 'area complete', and there's a link to a forum post."
(Happy to be corrected/updated here, I am not an a11y expert. I am a very happy Monodraw customer though!)
replies(1): >>45039814 #
billyp-rva ◴[] No.45039814[source]
Would this tell the screen reader to just ignore it? Then you'd lose all accessibility for its content.
replies(2): >>45040339 #>>45042859 #
jen729w ◴[] No.45040339[source]
I believe role=“img” tells it to behave like one, causing the descriptive text to be read out in its place.
replies(1): >>45041103 #
billyp-rva ◴[] No.45041103[source]
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.
replies(1): >>45049136 #
1. jen729w ◴[] No.45049136[source]
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.