-
-
Notifications
You must be signed in to change notification settings - Fork 895
Open
Labels
PR is more than welcomedExtra attention is neededExtra attention is neededenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Map markers use div
elements with an aria-label="Map marker"
and no role which is not recommended from an accessibility standpoint. Markers should either not use div
, a proper role
attribute should be assigned or no aria-label
should be set.
maplibre-gl-js version: 5.7.2
browser: All
Steps to Trigger Behavior
- Render a marker on the map
- Inspect marker
Link to Demonstration
https://maplibre.org/maplibre-gl-js/docs/examples/add-a-default-marker/
The issue can be clearly seen on the maplibre example by just inspecting the marker on the map.

Expected Behavior
div
with role
attribute and aria-label
OR element that accepts aria-label
OR no aria-label
supplied
Actual Behavior
div
with no role
and default aria-label
of "Map marker"
Metadata
Metadata
Assignees
Labels
PR is more than welcomedExtra attention is neededExtra attention is neededenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers