Skip to content

Commit

Permalink
Mobile menu adjustment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Stine committed Apr 6, 2020
1 parent 5997add commit b522343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/partials/divi-accessibility-embedded-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ function skipTo(target) {
/**
* Mobile menu Aria support.
*/
$('.mobile_menu_bar_toggle').attr({'role': 'button', 'tabindex': 0});
$('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0});
$('.mobile_menu_bar_toggle').on('click', function() {
if($(this).hasClass('a11y-mobile-menu-open') ) {
$(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false');
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Plugin created by [CampusPress](https://campuspress.com). Plugin icon based off
= 1.2.6 =
* Social links now have text, thanks to maco.
* Fix sanitization across the plugin.
* Fix default aria-expanded state on closed mobile menu.

= 1.2.5 =
* Update WordPress compatibility for 5.2.3.
Expand Down

0 comments on commit b522343

Please sign in to comment.