Created
May 5, 2021 06:28
-
-
Save LucaRosaldi/16ba0147f8e1120b1514917740bda3f2 to your computer and use it in GitHub Desktop.
HTML: Better altenative to input type="number"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/ --> | |
<input type="text" inputmode="numeric" pattern="[0-9]*"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment