mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
Merge remote-tracking branch 'origin/main' into more-eslint
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
startWith,
|
||||
} from 'rxjs/operators';
|
||||
|
||||
import { ThemeConfig } from '../../config/theme.model';
|
||||
import { ThemeConfig } from '../../config/theme.config';
|
||||
import { environment } from '../../environments/environment';
|
||||
import { getPageInternalServerErrorRoute } from '../app-routing-paths';
|
||||
import { AuthService } from '../core/auth/auth.service';
|
||||
@@ -92,4 +92,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