<Link />

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

Numbers are one of the most commonly asked for pieces of data, typically used in dates. [...] Until now, the GOV.UK Design System date input component used the HTML element <input type="number"> to provide this number keypad when a user enters dates.

However, we recently moved away from <input type="number"> to <input type="text" inputmode="numeric" pattern="[0-9]*"> [...].

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