Layer's related aria-haspopup
misplaced/misused
#7192
Labels
accessibility
Anything related to ensuring no barriers exist that prevent interactions or information access
Currently,
aria-haspopup
is improperly set on the layer list's and control's containerdiv
element:Leaflet/src/control/Control.Layers.js
Line 180 in 983092a
The
aria-haspopup
description suggests that the attribute should be set on the element that triggers additional content (which is<a class="leaflet-control-layers-toggle">
in this case).It might be a good idea to check out the different patterns in the W3C ARIA Practices documentation to establish what sort of pattern would best fit the layer control (for example the disclosure widget).
The text was updated successfully, but these errors were encountered: