Skip to content

Commit 43b84bd

Browse files
committed
Focus op feature modal na openen met toetsenbord
1 parent e6f45b2 commit 43b84bd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/gh-datainmap/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- Na kiezen van loocatie met toetsenbord wordt de focus nu direct op het feature modal gezet.
12
- Focus blijft met tabben nu binnen feature modal totdat deze wordt gesloten.
23
- Zoomknoppen zijn nu voorzien van een `aria-label`.
34
- Het overzicht met layers geeft nu ook het type en de transparantie aan.

src/components/feature.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default class FeatureComponent extends Component {
136136
if(this.props.feature !== null) {
137137
document.body.classList.add('gh-dim-modal-open');
138138
if(typeof this.props.cb === 'function') {
139+
this.refModal.current.focus();
139140
this.props.cb(this.props.feature);
140141
}
141142
}

0 commit comments

Comments
 (0)