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

textarea aria-describedby references span before it is present #11633

Open
2 of 5 tasks
benstoltz opened this issue Feb 26, 2025 · 0 comments
Open
2 of 5 tasks

textarea aria-describedby references span before it is present #11633

benstoltz opened this issue Feb 26, 2025 · 0 comments
Labels
0 - new New issues that need assignment. a11y Issues related to Accessibility fixes or improvements. ArcGIS Hub Issues logged by ArcGIS Hub team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.

Comments

@benstoltz
Copy link
Member

Check existing issues

Summary

We got an accessibility violation on the calcite-text-area when LevelAccess audited Hub. The textarea has a aria-describedby added to it referencing calcites out of the box validation before the validation span has even been added to the dom. It would be preferred if we could conditionally add the aria-describedby based on whether or not that span is added to the dom.

Actual Behavior

Issue can be seen on Calcite docs

In a calcite area with no validation (no max/min length) the aria-describedby is referencing a nonexistent span
Image

In a calcite area with validation (max/min length), but not violating that validation the aria-describedby is referencing a nonexistent span
Image

When the character count is gone over, the span now is present in the dom
Image

Expected Behavior

The textarea would not have an aria-describedby until the validation fails and the span is added to the dom, at which point then the aria-describedby would be added.

Reproduction Sample

https://developers.arcgis.com/calcite-design-system/components/text-area/

Reproduction Steps

  1. visit https://developers.arcgis.com/calcite-design-system/components/text-area/
  2. Inspect the textarea and note the aria-describedby
  3. configure max/min length
  4. Observe the span being added/removed but the aria-describedby remaining

Reproduction Version

3.03

Working W3C Example/Tutorial

No response

Relevant Info

No response

Regression?

No response

Priority impact

impact - p3 - not time sensitive

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Hub

@benstoltz benstoltz added 0 - new New issues that need assignment. a11y Issues related to Accessibility fixes or improvements. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Feb 26, 2025
@github-actions github-actions bot added ArcGIS Hub Issues logged by ArcGIS Hub team members. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. a11y Issues related to Accessibility fixes or improvements. ArcGIS Hub Issues logged by ArcGIS Hub team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

1 participant