textarea aria-describedby references span before it is present #11633
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.
Check existing issues
Summary
We got an accessibility violation on the calcite-text-area when LevelAccess audited Hub. The
textarea
has aaria-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 thearia-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 spanIn a calcite area with validation (max/min length), but not violating that validation the

aria-describedby
is referencing a nonexistent spanWhen the character count is gone over, the span now is present in the dom

Expected Behavior
The
textarea
would not have anaria-describedby
until the validation fails and the span is added to the dom, at which point then thearia-describedby
would be added.Reproduction Sample
https://developers.arcgis.com/calcite-design-system/components/text-area/
Reproduction Steps
aria-describedby
aria-describedby
remainingReproduction 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 team
ArcGIS Hub
The text was updated successfully, but these errors were encountered: