toscani icon indicating copy to clipboard operation
toscani copied to clipboard

Restructure Inputs for better accessibility

Open bradfrost opened this issue 11 years ago • 3 comments

Based on this conversation: https://twitter.com/toddmparker/status/455855655027736576

The basic gist: input masking causes some serious issues for screen readers, so instead of the JS-based input masking, we could dynamically position the input fields and labels to function as a single unit. When the input is validated, it will auto-advance to the next field.

bradfrost avatar Apr 15 '14 01:04 bradfrost

FYI. Auto advancing to the next field isn't going to work in mobile webkit. In order for it to work at all, it has to be a standalone app, and even then, the keyboard is going to disappear and reappear.

Aaron's pen (http://codepen.io/aarongustafson/pen/CervH/) doesn't seem to work in Chrome 34. Safari on iOS doesn't do anything either.

Also. I've forked the repo to 'v2' branch, so feel free to start committing whatever you want. We can start from scratch on this one.

zdfs avatar Apr 15 '14 01:04 zdfs

The auto-advance thing might just be an unfortunate limitation of living in the browser ghetto. The current solution doesn't auto-advance either on iOS. If all other things are created equal, I'd try to implement the more accessible option. That's my hunch at least.

bradfrost avatar Apr 15 '14 03:04 bradfrost

I hope to implement this tonight. Sorry for the delay.

zdfs avatar Apr 22 '14 21:04 zdfs