diff options
author | Jan C. Borchardt <hey@jancborchardt.net> | 2020-09-17 20:31:21 +0200 |
---|---|---|
committer | Jan C. Borchardt <hey@jancborchardt.net> | 2020-09-17 20:31:21 +0200 |
commit | caf284dd2e6c0674265bbdcdcf6c9e53b837b33d (patch) | |
tree | e8dcdf1c02bf6c955341fa0584c0bbd1d65efc57 /apps/dashboard/src | |
parent | e14ba58b6d2fec3702e4ad1f8445ccc74d922beb (diff) | |
download | nextcloud-server-caf284dd2e6c0674265bbdcdcf6c9e53b837b33d.tar.gz nextcloud-server-caf284dd2e6c0674265bbdcdcf6c9e53b837b33d.zip |
Dashboard: Fix accessibility skip links
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r-- | apps/dashboard/src/App.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index ea35e32d57c..ef7e770f0d6 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -215,6 +215,7 @@ export default { }, mounted() { this.updateGlobalStyles() + this.updateSkipLink() window.addEventListener('scroll', this.handleScroll) setInterval(() => { @@ -321,6 +322,10 @@ export default { document.body.classList.remove('dashboard--dark') } }, + updateSkipLink() { + // Make sure "Skip to main content" link points to the app content + document.getElementsByClassName('skip-navigation')[0].setAttribute('href', '#app-dashboard') + }, updateStatusCheckbox(app, checked) { if (checked) { this.enableStatus(app) |