mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
Added skip to main content button
This commit is contained in:

committed by
Tim Donohue

parent
d166b5e37a
commit
e545c42aae
@@ -78,4 +78,12 @@ export class RootComponent implements OnInit {
|
||||
this.shouldShowRouteLoader = false;
|
||||
}
|
||||
}
|
||||
|
||||
skipToMainContent() {
|
||||
const mainContent = document.getElementById('main-content');
|
||||
if (mainContent) {
|
||||
mainContent.tabIndex = -1;
|
||||
mainContent.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user