-
Notifications
You must be signed in to change notification settings - Fork 346
Closed
Labels
accessibilitycharacter count🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)Something isn't working the way it should (including incorrect wording in documentation)
Milestone
Description
Description of the issue
If a character count also has a hint associated with the textarea, some screen readers also include the hint text whenever the count message is announced.
Steps to reproduce the issue
- Go to https://govuk-frontend-review.herokuapp.com/components/character-count/with-hint/preview
- Focus the textarea and wait for the accessible name, type and description to be read
- Enter characters in the text area
Actual vs expected behaviour
Expected: Only the count message should be announced, for example "You have 9 characters remaining."
Actual: The hint text is also announced in:
- JAWS 2021.2103.174 / Chrome 96
- JAWS 2021.2103.174 / Firefox 95
- NVDA 2021.2 / Chrome 96
- NVDA 2021.2 / Firefox 94
"You have 5 characters remaining. Don't include personal or financial information, eg your National Insurance Number or credit card details."
This hint text was also announced very occasionally in VoiceOver / Safari 15.2 (macOS Big Sur) with no discernible pattern.
JAWS 2021.2103.174 / IE11 and VoiceOver / Safari (iOS 15.2) behave as expected, announcing only the remaining count.
Environment (where applicable)
- Operating system: As above
- Browser: As above
- Browser version: As above
- GOV.UK Frontend Version: v4.0.0
Metadata
Metadata
Assignees
Labels
accessibilitycharacter count🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)Something isn't working the way it should (including incorrect wording in documentation)