nhsuk / nhsuk-service-manual-community-backlog

This is a place for digital teams in the NHS to work together and develop the NHS digital service manual.
https://service-manual.nhs.uk/community-and-contribution
62 stars 5 forks source link

Date input #10

Open davidhunter08 opened 5 years ago

davidhunter08 commented 5 years ago

Use this issue to discuss the date input in the NHS digital service manual

mcheung-nhs commented 3 years ago

Should we follow recommendations from gov with regards to not using type="number"? Due to their research noted here: https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/ They updated their guidance here: https://design-system.service.gov.uk/components/text-input/#numbers Which resulted in updated guidance on their date input component: https://design-system.service.gov.uk/components/date-input/

frankieroberto commented 8 months ago

Just a quick note to say that the Date input page says this:

Our date input is based on the component in the GOV.UK Design System. GOV.UK says that they need to do more research to understand if users struggle to enter months as numbers and whether it's more helpful to let them enter months as text.

However the Date input page on the GOV.UK Design System was recently updated (by me) to say this:

Accept month names written out in full or abbreviated form (for example, ‘january’ or ‘jan’) as some users may enter months in this way.

and the research section was updated to say this:

Findings from the Apply for teacher training service showed that hundreds of users were inputting months using full or abbreviated month names and getting an error. They changed the component to accept month names to be consistent with this observed behaviour. Since changing the service the number of errors has dropped dramatically.

Some users with dyscalculia may struggle to convert month names into numbers, but accepting full or abbreviated month names may help these users.

You might like to consider something similar for the NHS Design System?