Skip to content

Commit 68f717c

Browse files
committed
aria-label zoom in/uit-knoppen aangepast
1 parent e23cb33 commit 68f717c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/gh-datainmap/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- Documentatie wijziging, nieuwe URL voor standaard kaart.
2+
- De zoom in/uit-knoppen hebben nu een `aria-label` waar de zichtbare tekst in voor komt.
23

34
**1.10.1 (2021-10-06)**
45

src/components/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class MapComponent extends Component {
4747
this.olMap.getControls().forEach((control) => {
4848
if(control.element.className.indexOf('ol-zoom') != -1) {
4949
control.element.children.forEach((el) => {
50-
el.setAttribute('aria-label', el.getAttribute('title'));
50+
el.setAttribute('aria-label', el.getAttribute('title') + ' ' + el.textContent);
5151
});
5252
}
5353
});

0 commit comments

Comments
 (0)