mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
parent
7b2525aedb
commit
cbabdbb33e
11 changed files with 356 additions and 15 deletions
|
@ -43,6 +43,8 @@ jQuery( document ).ready( function( $ ) {
|
|||
}
|
||||
}
|
||||
|
||||
button.setAttribute( 'aria-expanded', true );
|
||||
|
||||
modal.removeAttribute( 'hidden' );
|
||||
modalBg.removeAttribute( 'hidden' );
|
||||
modal.style.top = position.top + 'px';
|
||||
|
@ -66,6 +68,8 @@ jQuery( document ).ready( function( $ ) {
|
|||
modal.hidden = true;
|
||||
modalBg.hidden = true;
|
||||
|
||||
button.setAttribute( 'aria-expanded', false );
|
||||
|
||||
// Wait a tick before setting focus. See https://github.com/WICG/inert#performance-and-gotchas
|
||||
setTimeout( function() {
|
||||
if ( button ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue