-
Notifications
You must be signed in to change notification settings - Fork 5
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
Character count #172
Comments
Hey @Fenwick17,
There is an open issue on GOV.UK Frontend also considering issues into keeping them in sync: alphagov/govuk-frontend#1104 I suspect trying to get them 1:1 might be not possible without a lot of expensive code for the user, but perhaps there's a solution where the clientside undercuts the server... not sure, will welcome your help here :) |
We added a research question to our most recent UR calls to investigate if users understood character count and/or found it useful for it to be displayed. |
We in the NHS Pathways team also need this. We have a bunch of textarea inputs and all have character limits, but we currently have no way of showing that to the users and that's really bad. The user types away not knowing they've passed the character limit and are only told so once they submit the form. |
We are also in process of testing a version of this on screening for things like comments, in order to manage what gets entered. |
Is there a repo where these scripts are hosted? We've been using the minified version from assets.nhs.uk so far, but have had to tweak it due to a validation bug on page load. Would be nice to contribute if a central repo exists |
Hey @JackReevies you can find the JavaScript for all components in the NHS.UK frontend library repo, we provide the JavaScript via npm and pre-compiled files (see the README of that repo for instructions on how to install). |
I've ported the govuk-frontend one to nhsuk-frontend over here: nhsuk/nhsuk-frontend#811 Would be good to get that in at some point so that people don't need to keep porting it themselves. We're using a home grown one at the moment on 111 online and I would like to replace it with this. |
We've agreed to publish character count component guidance, based on GOV.UK and marked experimental, to enable people to test it and comment. Working on this for a Feb 2023 release. |
We've had a question about timing of the status message which appears to update excessively when using a screen reader. The team's audit reported that when: Note: the guidance on character count says:
|
@sarawilcox We actually had exactly the same thing with one participant using 111 online. However it appeared at the time to be because he was stopping to talk to us, and not typing "naturally". So we had made a note of it as something to keep an eye on. It's interesting that another team has found the same though. It looks like there's someone else on the govuk-frontend side that has also reported similar: alphagov/govuk-design-system-backlog#67 (comment) As mentioned a while back, because of the length of time it took us to get character count into nhsuk-frontend, we have ended up with an out of date implementation. If we decide to take action on this, I think we should update to the latest govuk-frontend version first, and then make the fix as there's been other improvements since as well. |
Someone has just pointed out to me that our character count changes to red and is bold if go above the character limit. Govuk only changes the colour which could be an accessibility issue for some. |
What
Character count component to help users know how much text they can enter when there is a limit on the number of characters. This would usually be used with the Textarea component.
Similar to the Character count in the GOV.UK Design System and GOV.UK Frontend.
Why
We've had a number of teams using the Character count component from the GOV.UK Design System within their services.
Teams using this component will feedback in this issue with their examples, needs and findings for this component.
Services currently using a character count:
Anything else
To note from the GOV.UK Design system:
Looking for further feedback within the NHS for this component so that we can explore adding it to the NHS.UK frontend library and NHS digital service manual. We should also provide any feedback received to GOVUK.
The text was updated successfully, but these errors were encountered: