-
Notifications
You must be signed in to change notification settings - Fork 320
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 count message is not associated with textarea #1106
Labels
accessibility
character count
🕔 hours
A well understood issue which we expect to take less than a day to resolve.
Comments
Steven Proctor reported this a while ago and, at least at that point, an update on the textarea component was needed to be able pass the described by attribute to the element. |
timpaul
added
🕔 hours
A well understood issue which we expect to take less than a day to resolve.
Priority: low
labels
May 20, 2019
25 tasks
This was fixed by #1347 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
accessibility
character count
🕔 hours
A well understood issue which we expect to take less than a day to resolve.
The character count info message is (I believe) meant to be associated with the textarea using aria-describedby. However, this association is only made if there is no existing error message:
govuk-frontend/src/components/character-count/character-count.js
Lines 94 to 105 in fe36aa3
We always provide an existing info message as of 7b534bf:
govuk-frontend/src/components/character-count/template.njk
Lines 26 to 28 in fe36aa3
This means that the association will never be created.
From testing with Voiceover / Safari, the limit is still announced when it changes (because of the
aria-live
on the message), but it is no longer announced when focussing the field which I believe it should be.The text was updated successfully, but these errors were encountered: