-
Notifications
You must be signed in to change notification settings - Fork 179
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
Accessibility: search suggestions menu is not accessible to screen readers and has unexpected keyboard behavior (fails WCAG criteria) #517
Comments
@maggiewachs Digging into this, it seems like this combobox runs on this https://github.com/tristen/suggestions I forked this, modernized, made an accessible version using WCAG's combobox example. You can install and override the dependency as a github package, or you can download a zip and install it as a local file dependency. https://github.com/hsdonkin/suggestions In our
Basically, any website using the old version is open to an ADA lawsuit 😅 so this should be replaced @mapbox |
@hsdonkin thank you! I'll take a look. |
@hsdonkin What would it take to get your fix as Pull request either against this repo or maybe against upstream suggestions repo so we can get the fix farther upstream rather than switching to your fork. |
I could put in a PR to @tristen 's suggestions, I had some issues getting local dev online but I think I've got things working. My fork includes a different dev pipeline, and a more modern implementation via classes |
mapbox-gl-js version: Latest
browser: All
Why we need this fixed
I'm a web accessibility engineer for a digital agency, and one of our clients is a Federal US agency with millions of website visitors per month. They have a few licensed implementations of Mapbox, and the ones that use the GL search feature display the following bugs and do not conform to accessibility requirements. Fixing this issue will mean our disabled users can take full advantage of Mapbox functionality, and most importantly, have a much better online experience when performing a Mapbox search.
Steps to Trigger Behavior
Link to Demonstration
The issues are present in this demo: https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-outside-the-map/
Expected Behavior
When a user enters text in the search box:
Patterns to emulate: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
Actual Behavior
When a user enters text in the search box:
The text was updated successfully, but these errors were encountered: