Skip to content

Commit b522343

Browse files
author
Alex Stine
committed
Mobile menu adjustment.
1 parent 5997add commit b522343

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

public/partials/divi-accessibility-embedded-js.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function skipTo(target) {
542542
/**
543543
* Mobile menu Aria support.
544544
*/
545-
$('.mobile_menu_bar_toggle').attr({'role': 'button', 'tabindex': 0});
545+
$('.mobile_menu_bar_toggle').attr({'role': 'button', 'aria-expanded': 'false', 'tabindex': 0});
546546
$('.mobile_menu_bar_toggle').on('click', function() {
547547
if($(this).hasClass('a11y-mobile-menu-open') ) {
548548
$(this).removeClass('a11y-mobile-menu-open').attr('aria-expanded', 'false');

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Plugin created by [CampusPress](https://campuspress.com). Plugin icon based off
5555
= 1.2.6 =
5656
* Social links now have text, thanks to maco.
5757
* Fix sanitization across the plugin.
58+
* Fix default aria-expanded state on closed mobile menu.
5859

5960
= 1.2.5 =
6061
* Update WordPress compatibility for 5.2.3.

0 commit comments

Comments
 (0)