Page 1 of 1

Do you use input type=number? This is interesting...

Posted: Sun Mar 29, 2020 10:47 am
by Albert Wiersch
I came across this article a few days ago.

If you use

Code: Select all

<input type="number">
then you may want to read this interesting article.

It talks about problems with it, including with accessibility.

It recommends this instead:

Code: Select all

<input type="text" inputmode="numeric" pattern="[0-9]*">
Here's the link: Why the GOV.UK Design System team changed the input type for numbers