File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export default {
48
48
this .setMainId ()
49
49
this .setWarningInExternalLinks ()
50
50
this .setComplementRouteToAnnouncer ()
51
+ this .setTabIndexSidebarButton ()
51
52
})
52
53
},
53
54
@@ -70,6 +71,13 @@ export default {
70
71
if (this .$themeLocaleConfig .announcer ) {
71
72
this .$announcer .setComplementRoute (this .$themeLocaleConfig .announcer .complementRoute )
72
73
}
74
+ },
75
+
76
+ setTabIndexSidebarButton () {
77
+ const el = document .querySelector (' .sidebar-button' )
78
+ if (! el) return
79
+ el .setAttribute (' tabindex' , 0 )
80
+ el .setAttribute (' aria-label' , ' Open Sidebar Navigation' )
73
81
}
74
82
}
75
83
}
Original file line number Diff line number Diff line change 2
2
@require './custom-block.styl'
3
3
@require './search.styl'
4
4
@require './sidebar.styl'
5
+ @require './navbar.styl'
5
6
6
7
.page-edit .edit-link > a
7
8
color var (-- text - color-link )
Original file line number Diff line number Diff line change
1
+ // SIDEBAR LINKS
1
2
.sidebar-links
2
3
> li
3
4
margin : 6px 0
5
+ width : 95%
6
+ margin-left : 2.5%
4
7
5
8
.sidebar-sub-headers
6
9
margin-top : 5px
@@ -18,7 +21,20 @@ a.sidebar-link
18
21
& .active
19
22
border-left-color var (-- accent-color )
20
23
24
+ // SIDEBAR BUTTON
25
+ .sidebar-button
26
+ padding : 1.2rem 1.3rem
27
+ top : 0.7rem
28
+ .icon
29
+ position : absolute
30
+
31
+ // MOBILE
21
32
@media (max-width : $MQMobile)
33
+ .sidebar-button
34
+ display : flex
35
+ justify-content : center
36
+ align-items : center
37
+
22
38
.theme-container.sidebar-open .sidebar
23
39
visibility : visible
24
40
You can’t perform that action at this time.
0 commit comments