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
In previous ARIA recommendations, aria-invalid had a global scope, but the most recent version (1.2), narrowed the scope to specific roles. The aria-invalid attribute should be reassigned to the role="listbox" element.
Describe the bug
The dropdown component contains a button with
aria-invalid
assigned, which is being flagged by our instance of Siteimprove as an invalid use of ARIA. Dropdown source: https://github.com/CMSgov/design-system/blob/main/packages/design-system/src/components/Dropdown/Dropdown.tsx#L279In previous ARIA recommendations,
aria-invalid
had a global scope, but the most recent version (1.2), narrowed the scope to specific roles. The aria-invalid attribute should be reassigned to therole="listbox"
element.To Reproduce
Steps to reproduce the behavior:
<button>
element hasaria-invalid="false"
aria-invalid
on the buttonExpected behavior
No ARIA violations.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: