dai11y 04/03/2020

Your daily frequent11y newsletter, brought to you by @ChrisBAshton:

Why the GOV.UK Design System team changed the input type for numbers

  • Article by Hanna Laakso, explaining why GOV.UK has moved away from using <input type="number"> for things like credit card / passport numbers. It has big issues in NVDA and Dragon Naturally Speaking, and its native increment/decrement behaviour (triggered by UP/DOWN arrow keys or scrolling) is often unintended. Some browsers also attempt to round the number or add comma separation. GOV.UK now uses <input type="text" inputmode="numeric" pattern="[0-9]*">, which retains the numeric keyboard without compromising usability.

Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.

Loading...