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.
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: