updated plugin GP Premium version 2.2.1

This commit is contained in:
KawaiiPunk 2022-11-24 13:40:30 +00:00 committed by Gitium
parent e48f0b2253
commit 9bf96ad952
5 changed files with 12 additions and 5 deletions

View File

@ -3,7 +3,7 @@
* Plugin Name: GP Premium * Plugin Name: GP Premium
* Plugin URI: https://generatepress.com * Plugin URI: https://generatepress.com
* Description: The entire collection of GeneratePress premium modules. * Description: The entire collection of GeneratePress premium modules.
* Version: 2.2.0 * Version: 2.2.1
* Requires at least: 5.2 * Requires at least: 5.2
* Requires PHP: 5.6 * Requires PHP: 5.6
* Author: Tom Usborne * Author: Tom Usborne
@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly. exit; // Exit if accessed directly.
} }
define( 'GP_PREMIUM_VERSION', '2.2.0' ); define( 'GP_PREMIUM_VERSION', '2.2.1' );
define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) ); define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) );
define( 'GP_PREMIUM_DIR_URL', plugin_dir_url( __FILE__ ) ); define( 'GP_PREMIUM_DIR_URL', plugin_dir_url( __FILE__ ) );
define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' ); define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' );

View File

@ -1145,7 +1145,7 @@ if ( ! function_exists( 'generate_slideout_navigation' ) ) {
} }
?> ?>
<nav id="generate-slideout-menu" class="main-navigation slideout-navigation<?php echo esc_attr( $overlay ); ?>" <?php echo $microdata; // phpcs:ignore -- No escaping needed. ?> style="display: none;" aria-hidden> <nav id="generate-slideout-menu" class="main-navigation slideout-navigation<?php echo esc_attr( $overlay ); ?>" <?php echo $microdata; // phpcs:ignore -- No escaping needed. ?> style="display: none;" aria-hidden="true">
<div class="inside-navigation grid-container grid-parent"> <div class="inside-navigation grid-container grid-parent">
<?php <?php
do_action( 'generate_inside_slideout_navigation' ); do_action( 'generate_inside_slideout_navigation' );

View File

@ -526,6 +526,8 @@ var generateOffside = offside( '.slideout-navigation', {
} }
} }
document.querySelector( '.slideout-navigation' ).removeAttribute( 'aria-hidden' );
// Focus the first focusable element. // Focus the first focusable element.
var focusable = document.querySelector( '.slideout-navigation' ).querySelectorAll( 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' ); var focusable = document.querySelector( '.slideout-navigation' ).querySelectorAll( 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' );
@ -568,6 +570,7 @@ var generateOffside = offside( '.slideout-navigation', {
// Turn off visibility. // Turn off visibility.
setTimeout( function() { setTimeout( function() {
document.querySelector( '.slideout-navigation:not(.is-open)' ).style.visibility = ''; document.querySelector( '.slideout-navigation:not(.is-open)' ).style.visibility = '';
document.querySelector( '.slideout-navigation:not(.is-open)' ).setAttribute( 'aria-hidden', 'true' );
}, 500 ); }, 500 );
// Focus our slideout toggle. // Focus our slideout toggle.

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ Tags: generatepress
Requires at least: 5.2 Requires at least: 5.2
Tested up to: 6.1 Tested up to: 6.1
Requires PHP: 5.6 Requires PHP: 5.6
Stable tag: 2.2.0 Stable tag: 2.2.1
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -27,6 +27,10 @@ In most cases, #1 will work fine and is way easier.
== Changelog == == Changelog ==
= 2.2.1 =
* Fix: Add value to off-canvas aria-hidden attribute
* Tweak: Remove/add aria-hidden to off-canvas on toggle
= 2.2.0 = = 2.2.0 =
* Feature: Allow block element autosave * Feature: Allow block element autosave
* Feature: Add revisions to block elements * Feature: Add revisions to block elements