feature :green_apple:good first issue
Description
How is marker accessibility achieved in MapBox?
- Should default markers be focusable?
-
In Google Maps only interactive markers are focusable and have
role="button":Markers now default to the “img” accessibility role, or the “button” accessibility role if they are interactive (such as when a click event listener is registered). Interactive markers are also keyboard navigable [...]
-
(This may also be the case for Leaflet in the future: https://github.com/Leaflet/Leaflet/issues/8116)
-
Related: https://github.com/mapbox/mapbox-gl-js/pull/11064/commits/53f0eaf1626938a96d622cea2c12557f43468a42
-
- Is there a need for authoring guidance? Similar to Leaflet's Guideline for accessible markers.
- Autopan markers into view on focus is great for keyboard users, please consider it.