parent
88d107ca96
commit
ab31976c75
@ -79,6 +79,12 @@ L.Control.Zoom = L.Control.extend({
|
||||
link.href = '#';
|
||||
link.title = title;
|
||||
|
||||
/*
|
||||
* Will force screen readers like VoiceOver to read this as "Zoom in - button"
|
||||
*/
|
||||
link.setAttribute('role', 'button');
|
||||
link.setAttribute('aria-label', title);
|
||||
|
||||
L.DomEvent
|
||||
.on(link, 'mousedown dblclick', L.DomEvent.stopPropagation)
|
||||
.on(link, 'click', L.DomEvent.stop)
|
||||
|
@ -140,6 +140,12 @@ L.TileLayer = L.GridLayer.extend({
|
||||
*/
|
||||
tile.alt = '';
|
||||
|
||||
/*
|
||||
Set role="presentation" to force screen readers to ignore this
|
||||
https://www.w3.org/TR/wai-aria/roles#textalternativecomputation
|
||||
*/
|
||||
tile.setAttribute('role', 'presentation');
|
||||
|
||||
tile.src = this.getTileUrl(coords);
|
||||
|
||||
return tile;
|
||||
|
Loading…
Reference in New Issue
Block a user