ReactUSWDS Version & USWDS Version:
- "react": "^18.2.0"
- "react-dom": "^18.2.0"
- "@trussworks/react-uswds": "^11.0.0"
- "@uswds/uswds": "3.13.0"
- "next": "^14.2.35"
Describe the bug
Currently, the only way to apply an aria-describedby property to Combobox components is by using the predefined --assistiveHint ID. This limitation prevents developers from associating multiple unique IDs for field descriptors to the Combobox input. Consequently, only a single descriptor can be programmatically announced to assistive technology users, which is insufficient for cases that involve multiple field descriptors.
To Reproduce
Steps to reproduce the behavior:
- Create a Combobox component.
- Add an aria-describedby attribute using the --assistiveHint ID.
- Attempt to associate more than one unique ID as field descriptors to the same Combobox input.
- Observe that only one descriptor is programmatically announced.
Expected behavior
Combobox components should provide a mechanism to pass unique ID values to the aria-describedby attribute on the combobox input. This ensures accessibility compliance (specifically WCAG 1.3.1) for cases where multiple field descriptors are required to fully describe a field to assistive technologies.
ReactUSWDS Version & USWDS Version:
Describe the bug
Currently, the only way to apply an aria-describedby property to Combobox components is by using the predefined --assistiveHint ID. This limitation prevents developers from associating multiple unique IDs for field descriptors to the Combobox input. Consequently, only a single descriptor can be programmatically announced to assistive technology users, which is insufficient for cases that involve multiple field descriptors.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Combobox components should provide a mechanism to pass unique ID values to the aria-describedby attribute on the combobox input. This ensures accessibility compliance (specifically WCAG 1.3.1) for cases where multiple field descriptors are required to fully describe a field to assistive technologies.