File tree 3 files changed +27
-1
lines changed
app/components/navigation 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ const HeaderComponent = ({user}: HeaderProps) => {
27
27
</ Link >
28
28
</ div >
29
29
30
+ < a href = "#main" className = "skip-main" > Skip to main content</ a >
31
+
30
32
< div className = "header-links ml-auto pr-3 px-md-3 d-flex align-items-center d-print-none" >
31
33
{ user &&
32
34
( ! user . loggedIn ?
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export const IsaacApp = () => {
78
78
< ActiveModal />
79
79
< CookieBanner />
80
80
< EmailVerificationBanner />
81
- < main role = "main" className = "flex-fill content-body" >
81
+ < main id = "main" role = "main" className = "flex-fill content-body" >
82
82
< Switch >
83
83
{ /* Errors; these paths work but aren't really used */ }
84
84
< Route exact path = { serverError ? undefined : "/error" } component = { ServerError } />
Original file line number Diff line number Diff line change @@ -69,6 +69,30 @@ header {
69
69
line-height : 1.2 ;
70
70
}
71
71
72
+ a .skip-main {
73
+ left :-999px ;
74
+ position :absolute ;
75
+ top :auto ;
76
+ width :1px ;
77
+ height :1px ;
78
+ overflow :hidden ;
79
+ z-index :-999 ;
80
+ }
81
+ a .skip-main :focus , a .skip-main :active {
82
+ color : #000 ;
83
+ background-color :#fff ;
84
+ left : 5% ;
85
+ top : 60px ;
86
+ width : 175px ;
87
+ height : auto ;
88
+ overflow : auto ;
89
+ margin : 10px ;
90
+ text-align :center ;
91
+ font-family : $secondary-font-medium ;
92
+ font-size : 1rem ;
93
+ z-index :999 ;
94
+ }
95
+
72
96
// NOMENSA header.scss
73
97
// !important used to override bootstraps use of !important :(
74
98
You can’t perform that action at this time.
0 commit comments