updated plugin GP Premium
version 2.2.1
This commit is contained in:
parent
e48f0b2253
commit
9bf96ad952
@ -3,7 +3,7 @@
|
||||
* Plugin Name: GP Premium
|
||||
* Plugin URI: https://generatepress.com
|
||||
* Description: The entire collection of GeneratePress premium modules.
|
||||
* Version: 2.2.0
|
||||
* Version: 2.2.1
|
||||
* Requires at least: 5.2
|
||||
* Requires PHP: 5.6
|
||||
* Author: Tom Usborne
|
||||
@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
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_URL', plugin_dir_url( __FILE__ ) );
|
||||
define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' );
|
||||
|
@ -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">
|
||||
<?php
|
||||
do_action( 'generate_inside_slideout_navigation' );
|
||||
|
@ -526,6 +526,8 @@ var generateOffside = offside( '.slideout-navigation', {
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelector( '.slideout-navigation' ).removeAttribute( 'aria-hidden' );
|
||||
|
||||
// Focus the first focusable element.
|
||||
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.
|
||||
setTimeout( function() {
|
||||
document.querySelector( '.slideout-navigation:not(.is-open)' ).style.visibility = '';
|
||||
document.querySelector( '.slideout-navigation:not(.is-open)' ).setAttribute( 'aria-hidden', 'true' );
|
||||
}, 500 );
|
||||
|
||||
// Focus our slideout toggle.
|
||||
|
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@ Tags: generatepress
|
||||
Requires at least: 5.2
|
||||
Tested up to: 6.1
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 2.2.0
|
||||
Stable tag: 2.2.1
|
||||
License: GPLv2 or later
|
||||
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 ==
|
||||
|
||||
= 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 =
|
||||
* Feature: Allow block element autosave
|
||||
* Feature: Add revisions to block elements
|
||||
|
Loading…
Reference in New Issue
Block a user