File tree Expand file tree Collapse file tree 5 files changed +18
-1
lines changed
Expand file tree Collapse file tree 5 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 77 }
88
99 function _toggleMobileNav ( ) {
10+ const ariaExpanded = _$ . mobileToggle . getAttribute ( 'aria-expanded' ) === "true"
11+ _$ . mobileToggle . setAttribute ( "aria-expanded" , ! ariaExpanded ) ;
1012 _$ . navbarCollapse . classList . toggle ( 'show' ) ;
1113 }
1214
Original file line number Diff line number Diff line change 11.header-logo {
22 max-width : 200px ;
33 width : 100% ;
4+ }
5+
6+ .navbar-toggler .icon {
7+ display : none ;
8+ }
9+
10+ .navbar-toggler [aria-expanded = " true" ] .icon--opened {
11+ display : block ;
12+ }
13+
14+ .navbar-toggler [aria-expanded = " false" ] .icon--closed {
15+ display : block ;
416}
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ <h2 class="mb-0 text-color">{{ .Site.Title }}</h2>
1111 <!-- Toggler -->
1212 < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarmain "
1313 aria-controls ="navbarmain " aria-expanded ="false " aria-label ="Toggle navigation ">
14- < span class ="ti-menu-alt "> </ span >
14+ < img class ="icon icon--closed mr-2 " alt ="Menu closed " src ="/images/icons/menu-closed.svg " />
15+ < img class ="icon icon--opened mr-2 " alt ="Menu opened " src ="/images/icons/menu-opened.svg " />
1516 </ button >
1617
1718 <!-- Collapse -->
You can’t perform that action at this time.
0 commit comments