-
Notifications
You must be signed in to change notification settings - Fork 110
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
Swap input type number with inputmode numeric - Text and Date input #666
Conversation
inputmode
and spellcheck
to input component nunjucks macroThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update the README for date-input for the HTML markup to change the type="number"
https://github.com/nhsuk/nhsuk-frontend/blob/input-component-macro/packages/components/date-input/README.md
f93780f
to
72241e2
Compare
Thanks @mcheung-nhs. I've made those changes. |
Hi @davidhunter08 - can see the requested changes - thanks! Do we also need to add the |
Yep, you're right. I've made the changes. |
@davidhunter08 I may be a little late to the party here, but what's the rationale for using Not only does it feel semantically incorrect, but you also lose some browser features (up / down arrow support on the keyboard and spinners in the UI). We're catching up with these changes in the react components☝️, and before we apply I like to understand the context a little better. Thanks! |
Hi @kevinkuszyk, we were following guidance and research done by gov.uk: |
Thanks @mcheung-nhs - that's exactly what I was looking for. |
Description
Add
inputmode
andspellcheck
options to Text input component Nunjucks macro.Change
type="number"
toinputmode="numeric"
on the Date input component.Related issues
Checklist