Skip to content
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

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

Open
2 tasks done
amycole501 opened this issue Apr 17, 2024 · 0 comments
Open
2 tasks done
Labels
A11y Audit Issues related to the accessibility audit Affects: Accessibility 🟡 Relates to the accessibility of our components Needs: Confirmation We need to confirm that this is an issue Package: Character count Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code
Milestone

Comments

@amycole501
Copy link

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

@amycole501 amycole501 added Type: Bug A problem in the code Affects: Accessibility 🟡 Relates to the accessibility of our components Needs: Confirmation We need to confirm that this is an issue Package: Character count A11y Audit Issues related to the accessibility audit labels Apr 17, 2024
@amycole501 amycole501 added this to the 2024.05 May milestone Apr 17, 2024
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Apr 17, 2024
@amycole501 amycole501 changed the title USWDS - Bug: Character count doesn't provide persistent character limit instructions for error prevention USWDS - Bug: Character count doesn't provide persistent character limit instructions Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11y Audit Issues related to the accessibility audit Affects: Accessibility 🟡 Relates to the accessibility of our components Needs: Confirmation We need to confirm that this is an issue Package: Character count Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code
Projects
Status: No status
Development

No branches or pull requests

1 participant