Why the GOV.UK Design System team changed the input type for numbers - Technology in government
We take a look at why the GOV.UK Design System changed the element it uses for inputting numbers, making it more accessible and easier to use.
Using <input type="text" inputmode="numeric" pattern="[0-9]*">
allows for a degree of separation between how the user enters data (“input mode”), what the browser expects the user input to contain (type equals number), and potentially how it tries to validate it.
September 17, 2021 at 1:31:57 PM EDT
*
FILLER