You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #9873, created by @dakahn to address #9630, an aria-describedby has been added to the TextInput generated DOM, set to the id of a helper text DIV. However, the helper text DIV is only generated if the helperText prop has been set. This means that when the helperText prop is NOT set the generated DOM includes an aria-describedby which contains an id that doesn't exist.
When aria-describedby contains an id that doesn't exist, this is an error, and causes accessibility testing tools to report violations whenever TextInput components without helperText set are used. For example, accessibility-checker v3.1.11 reports violations as follows:
The above example is from the ExportModal test suite of @carbon/ibm-cloud-cognitive. This test has been temporarily skipped in order to allow us to continue work until this issue is fixed.
Package
carbon-components-react
Package version
7.47.2
Description
With #9873, created by @dakahn to address #9630, an
aria-describedby
has been added to the TextInput generated DOM, set to the id of a helper text DIV. However, the helper text DIV is only generated if thehelperText
prop has been set. This means that when thehelperText
prop is NOT set the generated DOM includes anaria-describedby
which contains an id that doesn't exist.When
aria-describedby
contains an id that doesn't exist, this is an error, and causes accessibility testing tools to report violations whenever TextInput components withouthelperText
set are used. For example,accessibility-checker
v3.1.11 reports violations as follows:The above example is from the ExportModal test suite of @carbon/ibm-cloud-cognitive. This test has been temporarily skipped in order to allow us to continue work until this issue is fixed.
Code of Conduct
The text was updated successfully, but these errors were encountered: