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) => {
3434
3535const setShowing = ( ) => {
3636 mobileButtons [ 0 ] . setAttribute ( 'aria-label' , 'Close the mobile menu' )
37+ mobileButtons [ 0 ] . setAttribute ( 'aria-expanded' , 'true' )
38+ mobileMenuSection . setAttribute ( 'aria-hidden' , 'false' )
3739 mobileMenuSection . classList . remove ( 'not-showing' )
3840 setTimeout ( ( ) => documentBody . classList . add ( 'no-scroll' ) , 300 )
3941}
4042
4143const setHidden = ( ) => {
4244 mobileButtons [ 0 ] . setAttribute ( 'aria-label' , 'Open the mobile menu' )
45+ mobileButtons [ 0 ] . setAttribute ( 'aria-expanded' , 'false' )
46+ mobileMenuSection . setAttribute ( 'aria-hidden' , 'true' )
4347 mobileMenuSection . classList . add ( 'not-showing' )
4448 documentBody . classList . remove ( 'no-scroll' )
4549}
You can’t perform that action at this time.
0 commit comments