File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,16 @@ mobileButtons.forEach((button) => {
34
34
35
35
const setShowing = ( ) => {
36
36
mobileButtons [ 0 ] . setAttribute ( 'aria-label' , 'Close the mobile menu' )
37
+ mobileButtons [ 0 ] . setAttribute ( 'aria-expanded' , 'true' )
38
+ mobileMenuSection . setAttribute ( 'aria-hidden' , 'false' )
37
39
mobileMenuSection . classList . remove ( 'not-showing' )
38
40
setTimeout ( ( ) => documentBody . classList . add ( 'no-scroll' ) , 300 )
39
41
}
40
42
41
43
const setHidden = ( ) => {
42
44
mobileButtons [ 0 ] . setAttribute ( 'aria-label' , 'Open the mobile menu' )
45
+ mobileButtons [ 0 ] . setAttribute ( 'aria-expanded' , 'false' )
46
+ mobileMenuSection . setAttribute ( 'aria-hidden' , 'true' )
43
47
mobileMenuSection . classList . add ( 'not-showing' )
44
48
documentBody . classList . remove ( 'no-scroll' )
45
49
}
You can’t perform that action at this time.
0 commit comments