mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
Added skip to main content button
This commit is contained in:
@@ -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