From b522343c3cfcd072f3f7ab056a1aaf15c6aaaee7 Mon Sep 17 00:00:00 2001 From: Alex Stine Date: Mon, 6 Apr 2020 16:21:11 -0400 Subject: [PATCH] Mobile menu adjustment. --- public/partials/divi-accessibility-embedded-js.php | 2 +- readme.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/partials/divi-accessibility-embedded-js.php b/public/partials/divi-accessibility-embedded-js.php index 160e911..9b16a23 100755 --- a/public/partials/divi-accessibility-embedded-js.php +++ b/public/partials/divi-accessibility-embedded-js.php @@ -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'); diff --git a/readme.txt b/readme.txt index 9b4d80c..677be8a 100644 --- a/readme.txt +++ b/readme.txt @@ -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.