Skip to content

Commit

Permalink
Merge pull request #46 from TxSadhu/master
Browse files Browse the repository at this point in the history
Added support for Space Bar in mobile menu expansion.
  • Loading branch information
oversuman authored Apr 26, 2021
2 parents 6d51121 + 405be4e commit 7c0e341
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions divi-accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Divi Accessibility
* Plugin URI: https://wordpress.org/plugins/accessible-divi/
* Description: Improve Divi accessibility in accordance with WCAG 2.0 guidelines.
* Version: 2.0.3
* Version: 2.0.4
* Author: CampusPress
* Author URI: https://campuspress.com
* License: GPL-2.0+
Expand All @@ -30,7 +30,7 @@
}

if ( ! defined( 'DA11Y_VERSION' ) ) {
define( 'DA11Y_VERSION', '2.0.3' );
define( 'DA11Y_VERSION', '2.0.4' );
}

// Used for referring to the plugin file or basename.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "divi-accessibility",
"version": "2.0.1",
"version": "2.0.4",
"description": "A WordPress plugin that improves Divi accessibility in accordance with WCAG 2",
"watch": {
"build": {
Expand Down
2 changes: 1 addition & 1 deletion public/partials/js/aria_mobile_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jQuery(document).ready(function($) {
* Allows mobile menu to be opened with keyboard.
*/
$('.mobile_menu_bar').keyup(function(event) {
if (event.keyCode === 13) {
if (event.keyCode === 13 || event.keyCode === 32) {
$('.mobile_menu_bar').click();
}
});
Expand Down
2 changes: 1 addition & 1 deletion public/partials/js/aria_mobile_menu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Plugin created by [CampusPress](https://campuspress.com). Plugin icon based off


== Changelog ==
= 2.0.4 =
* Improvements for mobile menu opening and closing with keyboard.

= 2.0.3 =
* Fix mobile menu bugs.
Expand Down

0 comments on commit 7c0e341

Please sign in to comment.