Skip to content

Commit

Permalink
fix: don't make aria-live containers inert (#293)
Browse files Browse the repository at this point in the history
* fix: don't make aria-live containers inert
  • Loading branch information
Ned Zimmerman authored Mar 28, 2020
1 parent 810608a commit b12d4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/assets/scripts/Pinecone/Dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Dialog {
* @param {Function} callback
*/
invokeDialog( callback ) {
const elems = document.querySelectorAll( 'body > *' );
const elems = document.querySelectorAll( 'body > *:not([aria-live])' );
Array.prototype.forEach.call( elems, ( elem ) => {
elem.setAttribute( 'inert', 'inert' );
} );
Expand Down
2 changes: 1 addition & 1 deletion src/assets/scripts/Pinecone/FilterList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FilterList {
handleOverlay( event ) {
if ( ! event.target.closest( this.config.showCtrlSelector ) && ! event.target.closest( this.config.hideCtrlSelector ) ) return false;

const elems = document.querySelectorAll( 'body > *' );
const elems = document.querySelectorAll( 'body > *:not([aria-live])' );

if ( event.target.closest( this.config.showCtrlSelector ) ) {
document.body.classList.add( 'has-modal' );
Expand Down

0 comments on commit b12d4fe

Please sign in to comment.