toolness / p5.js-widget

A reusable widget for embedding editable p5 sketches in web pages.
https://toolness.github.io/p5.js-widget/
GNU Lesser General Public License v2.1
161 stars 44 forks source link

Widget is not accessible #30

Open toolness opened 8 years ago

toolness commented 8 years ago

Spent some time interacting with the widget in VoiceOver and noticed a few things:

toolness commented 8 years ago

Here's a page that contains two codemirror widgets, one which sets inputStyle: "contenteditable" and the other which sets inputStyle: "textarea":

http://jsbin.com/qopaxex/edit?html,output

Hopefully folks interested in accessibility can use that to see the difference between the two when used with screen-readers. I'm finding that NVDA reads the accessible one fairly well, and fails horribly on the inaccessible one. Haven't tried yet with VoiceOver or anything else.

toolness commented 8 years ago

It seems, unfortunately, that most screen readers don't read the "accessible" one very well. 😞

So another alternative may be to offer a button that's only perceivable by screen reader users which lets them opt-in to an accessible editor--it'd simply replace the codemirror widget with a standard <textarea>.

Here's an example:

http://pode.hksr.us/toolness/codemirror-fallback-example