Do you use input type=number? This is interesting...
Posted: Sun Mar 29, 2020 10:47 am
I came across this article a few days ago.
If you use
then you may want to read this interesting article.
It talks about problems with it, including with accessibility.
It recommends this instead:
Here's the link: Why the GOV.UK Design System team changed the input type for numbers
If you use
Code: Select all
<input type="number">
It talks about problems with it, including with accessibility.
It recommends this instead:
Code: Select all
<input type="text" inputmode="numeric" pattern="[0-9]*">