-
Notifications
You must be signed in to change notification settings - Fork 1
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
This INPUT (role=combobox) must have all of the following attributes: aria-controls | aria-expanded #213
Comments
This is a combobox where the associated listbox is not added to the DOM until the combobox is opened (so not a case where it's hidden and still referenceable). As such our automated scans ding it as a "confirmed" violation that our combobox is missing aria-controls, however aria-controls is there when the combobox is opened. 'User agents SHOULD treat state and property attributes with a value of "" the same as they treat an absent attribute.' https://www.w3.org/TR/wai-aria/#state_property_processing Moreover, the WAI-ARIA github has a long history of conversations regarding
We reached out to our Level Access contact for clarification on this "confirmed" issue as it seems to be effectively a non-issue. While the browser accessibility tree is valid, they proactively mark it as a confirmed issue to anticipate any issues with assistive technologies that might primarily scan the initial state of the DOM and not pick up a dynamically added list. However, this has not been an issue with our audits when using assistive technologies and many ATs are moving away from utilizing aria-controls. More over the fix of adding an empty |
Issue
This INPUT (role=combobox) must have all of the following attributes: aria-controls | aria-expanded
Details
Best Practice
Ensure ARIA roles, states, and properties are valid
Applicable Accessibility Standards
Offending HTML
<input value="" role="combobox" spellcheck="false" autocapitalize="none" aria-expanded="false" aria-autocomplete="list" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-1r1wf8p" type="text" id=":r0:" autocomplete="off" aria-describedby=":r0:-helper-text" aria-invalid="false">
Components/Stories Affected
The text was updated successfully, but these errors were encountered: