Skip to content
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

Combobox: role="combobox" attribute is on the wrong element causing Accessibility Checker error #7331

Closed
dakahn opened this issue Nov 20, 2020 · 3 comments

Comments

@dakahn
Copy link
Contributor

dakahn commented Nov 20, 2020

background IBMa/equal-access#282 (comment)

Our Combobox has a wrapper div with the attribute role="combobox". This attribute should be on the input itself. This is causing the below AC violation.
image

Sort of a weird error but essentially since AC expects -- as per WCAG recommendation -- for the combobox role to be on the input and it expects that input to receive focus first in the DOM AND instead something else gets focus -- we get this error.

Moving that attribute to the input itself should fix this issue.

@JensenAlexander
Copy link

Is there a workaround for this?

@tw15egan
Copy link
Member

tw15egan commented Feb 2, 2021

Seem to also be related to issues seen in Filterable Multiselect when the menu is open and items are selected (#7296 and #6570)

  • Initial DOM focus on the combobox is not set on the text input when the combobox receives focus
  • The element using 'aria-activedescendant' set to "carbon-multiselect-example-item-1" does not have its 'tabindex' attribute value set to 0 or -1

@dakahn
Copy link
Contributor Author

dakahn commented Feb 5, 2021

closing as a dupe of #6938

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants