The leaflet-container
needs an accessible name
#9119
Labels
accessibility
Anything related to ensuring no barriers exist that prevent interactions or information access
Checklist
Problem
Every interactive and focusable element needs a programmatically determinable name, role and value. Without a name and role, it is hard for a user of assistive technology to understand how to interact with it.
Currently, the accessible name of the map container is composed of the contents of the map, which in a map with lots of markers or similar makes it hard to understand.
As an example, a map with one marker just using defaults has the name, "Marker Zoom in Zoom out Leaflet © OpenStreetMap".
Proposed Solution
Give the
leaflet-container
an appropriate accessible name:name
("Map"),name
,aria-label
is not set, then setaria-label="Map"
Options
src/map/Map.js
:Implementation
src/map/Map.js
:I would welcome feedback on the issue and proposed solution.
If acceptable, I'd like to submit a pull-request with a unit test.
Thank you!
Nick
Environment
The text was updated successfully, but these errors were encountered: