Ticket #38397: 38397.diff
File 38397.diff, 1.0 KB (added by , 4 years ago) |
---|
-
src/wp-content/themes/twentyseventeen/assets/js/navigation.js
26 26 container.find( '.current-menu-ancestor > button' ).addClass( 'toggled-on' ); 27 27 container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' ); 28 28 29 // Add menu items with submenus to aria-haspopup="true". 30 container.find( '.menu-item-has-children, .page_item_has_children' ).attr( 'aria-haspopup', 'true' ); 29 // Add aria-haspopup="true" to menu items with submenus, and only if not an IE Touch device. 30 if (navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1 && navigator.msMaxTouchPoints) { 31 container.find( '.menu-item-has-children, .page_item_has_children' ).attr( 'aria-haspopup', 'true' ); 32 } 31 33 32 34 container.find( '.dropdown-toggle' ).click( function( e ) { 33 35 var _this = $( this ),