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

[a11y]: The ARIA attribute "aria-autocomplete" is in conflict with the corresponding HTML attribute "autocomplete" #17181

Open
tay1orjones opened this issue Aug 15, 2024 · 3 comments

Comments

@tay1orjones
Copy link
Member

tay1orjones commented Aug 15, 2024

Reported in slack, this violation appears on downshift-based components with the latest Aug06 ruleset.

Details

These attributes are set by downshift, the library that powers the Combobox, MultiSelect, FilterableMultiSelect and Dropdown.

While the spec calls for native attributes to "win" and be used if both of these are applied, in practice both are required in attempt to achieve the outcome of:

  1. Turning off form autocompletion so the browser does not display it's own listbox that conflicts with the listbox provided by the component (see examples [FilterableMultiSelect]: autocomplete="off" ignored by Chrome  #8993, and [Bug]: Chrome autocomplete shows over DatePicker #12602)
  2. AT's surfacing the presence of a list connected to these components.

The attributes are not semantically equivalent and have disparate features

Current progress

Reproduction

https://stackblitz.com/edit/github-k5cekb?file=src%2FApp.jsx

Components impacted

  • ComboBox
  • MultiSelect
@tay1orjones tay1orjones moved this to ⏱ Backlog in Design System Aug 15, 2024
@tay1orjones tay1orjones changed the title [a11y]: Combobox: The ARIA attribute "aria-autocomplete" is in conflict with the corresponding HTML attribute "autocomplete" [a11y]: The ARIA attribute "aria-autocomplete" is in conflict with the corresponding HTML attribute "autocomplete" Sep 23, 2024
@philljenkins
Copy link

See comment on W3C issue

@tay1orjones
Copy link
Member Author

Thanks @philljenkins! Do you know when the next release of the checker will be?

@philljenkins
Copy link

@tay1orjones late Oct or early Nov.
The Action Artifacts of our builds does include an interim versions of the Checker that can be used to test/close issue without waiting for the release to deploy to the Chrome Store.

The "autocomplete" fix will be in this Checker PR IBMa/equal-access#2025
(it's currently in Draft, so no artifact too test with yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

2 participants