updated plugin GP Premium version 2.2.1

This commit is contained in:
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

@ -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