Skip to content

Commit

Permalink
Set role="dialog" on popup containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Malvoz committed May 18, 2021
1 parent 02f57b4 commit 9612783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mapml/layers/MapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ export var MapMLLayer = L.Layer.extend({
let popup = e.popup, map = e.target, layer, group,
content = popup._container.getElementsByClassName("mapml-popup-content")[0];

popup._container.setAttribute("role", "dialog");
content.setAttribute("tabindex", "-1");
popup._count = 0; // used for feature pagination

Expand Down

0 comments on commit 9612783

Please sign in to comment.