File tree Expand file tree Collapse file tree
info/feedback/feedback-form Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11< div class ="row row-offcanvas row-offcanvas-right ">
2- < div class ="col-xs-12 col-sm-12 col-md-9 main-content ">
2+ < div class ="col-xs-12 col-sm-12 col-md-9 ">
33 < form class ="primary " [formGroup] ="feedbackForm " (ngSubmit) ="createFeedback() ">
44 < h2 > {{ 'info.feedback.head' | translate }}</ h2 >
55 < p > {{ 'info.feedback.info' | translate }}</ p >
Original file line number Diff line number Diff line change 1+ < button (click) ="skipToMainContent() " class ="btn btn-primary " id ="skip-to-main-content ">
2+ {{ 'root.skip-to-content' | translate }}
3+ </ button >
4+
15< div class ="outer-wrapper " [class.d-none] ="shouldShowFullscreenLoader " [@slideSidebarPadding] ="{
26 value: (!(sidebarVisible | async) ? 'hidden' : (slideSidebarOver | async) ? 'shown' : 'expanded'),
37 params: {collapsedSidebarWidth: (collapsedSidebarWidth | async), totalSidebarWidth: (totalSidebarWidth | async)}
610 < div class ="inner-wrapper ">
711 < ds-system-wide-alert-banner > </ ds-system-wide-alert-banner >
812 < ds-themed-header-navbar-wrapper > </ ds-themed-header-navbar-wrapper >
9- < main class ="main-content ">
13+ < main id ="main-content ">
1014 < ds-themed-breadcrumbs > </ ds-themed-breadcrumbs >
1115
1216 < div class ="container d-flex justify-content-center align-items-center h-100 " *ngIf ="shouldShowRouteLoader ">
Original file line number Diff line number Diff line change 1+ #skip-to-main-content {
2+ position : absolute ;
3+ top : -40px ;
4+ left : 0 ;
5+ opacity : 0 ;
6+ transition : opacity 0.3s ;
7+ z-index : calc (var (--ds-nav-z-index ) + 1 );
8+ border-top-left-radius : 0 ;
9+ border-top-right-radius : 0 ;
10+ border-bottom-left-radius : 0 ;
11+
12+ & :focus {
13+ opacity : 1 ;
14+ top : 0 ;
15+ }
16+ }
Original file line number Diff line number Diff line change @@ -78,4 +78,12 @@ export class RootComponent implements OnInit {
7878 this . shouldShowRouteLoader = false ;
7979 }
8080 }
81+
82+ skipToMainContent ( ) {
83+ const mainContent = document . getElementById ( 'main-content' ) ;
84+ if ( mainContent ) {
85+ mainContent . tabIndex = - 1 ;
86+ mainContent . focus ( ) ;
87+ }
88+ }
8189}
Original file line number Diff line number Diff line change 36103610
36113611 "resource-policies.table.headers.title.for.collection" : "Policies for Collection" ,
36123612
3613+ "root.skip-to-content" : "Skip to main content" ,
3614+
36133615 "search.description" : "" ,
36143616
36153617 "search.switch-configuration.title" : "Show" ,
Original file line number Diff line number Diff line change 2323 position : relative ;
2424}
2525
26- . main-content {
26+ # main-content {
2727 z-index : var (--ds-main-z-index );
2828 flex : 1 1 100% ;
2929 margin-top : var (--ds-content-spacing );
You can’t perform that action at this time.
0 commit comments