-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider removing the pattern attribute from date input once traffic from iOS < 12.2+ drops off #1701
Comments
iOS < 12.2 accounted for 1.37% of all iOS traffic in May 2021 – or 0.43% of all traffic – with 91.49% of iOS users running iOS 14. |
In March 2022, iOS versions 12.2 and below accounted for around 0.19% of iOS traffic and 0.08% of total traffic on GOV.UK. |
Reasons to remove it:
Reasons to keep it:
Other notes:
|
We currently tell people to turn off client-side (HTML5) validation, although it's a bit buried. I think this might if anything be a reason to remove it. If service teams don't turn off HTML5 validation then this is one of the few attributes we use across the codebase which would trigger client-side validation, which isn't always that accessible or helpful ('Please match the requested format.') On balance, I'd support removing it at this point 👍🏻 |
What
We use the pattern attribute to force the inputs within the date input component to trigger a numeric keypad on iOS < 12.2+, (and possibly some older Android browsers?)
Why
Once the number of users that require the
pattern
attribute in order to trigger a numeric keypad has dropped to a low enough percentage, we can remove it and rely exclusively oninputmode
.The text was updated successfully, but these errors were encountered: