Skip to content

Commit 12399ba

Browse files
authored
Set inner role="document" in popups (#470)
* Set inner `role="document"` in popups * Add link to GH issue in comment on why `role="document"` is needed
1 parent f105f10 commit 12399ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mapml/layers/MapLayer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,8 @@ export var MapMLLayer = L.Layer.extend({
11841184

11851185
popup._container.setAttribute("role", "dialog");
11861186
content.setAttribute("tabindex", "-1");
1187+
// https://github.com/Maps4HTML/Web-Map-Custom-Element/pull/467#issuecomment-844307818
1188+
content.setAttribute("role", "document");
11871189
popup._count = 0; // used for feature pagination
11881190

11891191
if(popup._source._eventParents){ // check if the popup is for a feature or query

0 commit comments

Comments
 (0)