Skip to content

USWDS - Bug: Character count doesn't provide persistent character limit instructions  #5873

Open

Description

Describe the bug

Related to site PR uswds/uswds-site#2607

The character count accessibility tests component may not pass [WCAG success criteria 3.3.3 Error Suggestion] (https://www.w3.org/WAI/WCAG21/Understanding/error-suggestion.html) and possibly 3.3.4 Error prevention.

The character count informs screen reader users of how many characters over the limit they have entered, but it does not explicitly tell them the character limit they need to stay under.

Steps to reproduce the bug

  1. Go to https://designsystem.digital.gov/components/character-count/
  2. View (or listen using a screen reader) the character count limit.
  3. Start typing.
  4. Notice that the limit is removed and instead the count indicates how many characters over or under the limit you are. But the limit has disappeared.

Expected Behavior

Make the character limit persistently visible.
Similarly after a screen reader user hears the status of their character count, the system can pause and say "the limit is 25 characters" to provide an equal experience.

Related code

No response

Screenshots

No response

System setup

No response

Additional context

No response

Code of Conduct

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Needs refinement

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions