Make countdown message screen reader compatible

Created on 19 January 2022, almost 3 years ago
Updated 17 July 2024, 4 months ago

Problem/Motivation

The countdown message isn't associated with the corresponding field in any way. Since it is after the particular field it is more or less hidden for screen reader users. The field and the count down message could be linked with an aria-describedby.

Steps to reproduce

  1. Set a Maxlength on a field.
  2. Type into the text field while using a screen reader.

Proposed resolution

Perhaps we can use drupal.announce in some way also (a direct update on every keystroke might be too distracting and cognitively demanding but an announcement like "only 10 characters left" or "you have reached the hard limit" might be helpful).

A good place for inspiration in regards of the character count might be also the gov.uk design system: https://design-system.service.gov.uk/components/character-count/

Remaining tasks

  • ✅ Get maintainer approval for the proposed resolution
  • ✅ Implement resolution
  • ✅ Write test coverage (contact a maintainer if you need help)
  • ✅ Maintainer review via the UI
  • ❌ Maintainer Code Review #1
  • ❌ Maintainer code review #2
  • ❌ Merge into dev branch, with credit to author and participants
🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States cedewey Denver, CO

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024