codeforamerica / honeycrisp-gem

A Rails gem with base styles and Javascript for Code for America products
http://honeycrisp.herokuapp.com
MIT License
24 stars 8 forks source link

Better a11y around mask inputs for a11y #266

Open coltborg opened 3 years ago

coltborg commented 3 years ago

What

Interesting choice that the input for a SSN is using type="tel". This poses a11y issues.

I first though it should move to type="number" but gov.uk recently moved their number inputs to:

<input type="text" inputmode="numeric" pattern="[0-9]*">

Investigate if this pattern is worth adopting.

Why

Discovered when investigating #265.