More aria attributes
This commit is contained in:
parent
bbf057c84b
commit
cce1f79a4d
@ -15,7 +15,7 @@
|
||||
-->
|
||||
|
||||
<template>
|
||||
<div class="map" :style="{backgroundColor: mapBackground }" v-bind="$attrs">
|
||||
<div class="map" :style="{backgroundColor: mapBackground }" v-bind="$attrs" aria-label="Map">
|
||||
<MapLayer v-for="[name, map] in maps" :key="name" :map="map" :name="name" :leaflet="leaflet"></MapLayer>
|
||||
<PlayersLayer v-if="playerMarkersEnabled" :leaflet="leaflet"></PlayersLayer>
|
||||
<MarkerSetLayer v-for="[name, markerSet] in markerSets" :key="name" :markerSet="markerSet" :leaflet="leaflet"></MarkerSetLayer>
|
||||
|
@ -55,7 +55,7 @@ export class DynmapLayerControl extends Control.Layers {
|
||||
const element = super.onAdd(map);
|
||||
|
||||
this._layersLink!.innerHTML = `
|
||||
<svg class="svg-icon">
|
||||
<svg class="svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#layers" />
|
||||
</svg>`;
|
||||
|
||||
|
@ -40,6 +40,7 @@ export class LogoControl extends Control {
|
||||
if (this.options.url) {
|
||||
link = DomUtil.create('a', '', container) as HTMLAnchorElement;
|
||||
link.href = this.options.url;
|
||||
link.setAttribute('aria-label', this.options.text);
|
||||
}
|
||||
|
||||
if (this.options.image) {
|
||||
|
Loading…
Reference in New Issue
Block a user