#Accessibility question - what's the best way to expose code-blocks to readers? There's a lot of information around visual contrast, but not much on how screen readers are used.
Tamas G reshared this.
#Accessibility question - what's the best way to expose code-blocks to readers? There's a lot of information around visual contrast, but not much on how screen readers are used.
Tamas G reshared this.
André Polykanine
in reply to Silvenga • • •Silvenga
in reply to André Polykanine • • •Pitermach
in reply to Silvenga • • •Silvenga
in reply to Pitermach • • •@pitermach @menelion Thanks!
And yeah, I don't like line numbers in general - they are hard to do right. A lot of code regions mess up text selection or break machine reading (for the same reasons you've mentioned).
André Polykanine
in reply to Silvenga • • •Silvenga
in reply to André Polykanine • • •@menelion Yeah, that was my thought too.
On one hand, it might be best to allow the screen reader (and any user customization) to "figure it out" (so take the most standard approach seen).
Or on the other hand, I can focus on being less annoying, even if non-standard (e.g. exposing how large the code block or providing an anchor directly to the section referenced).
I'm going test it all with a reader anyway, but I also know that there are custom flows people use that I won't know about.
André Polykanine
in reply to Silvenga • • •