From efe18e05763cfd13ca58088756517277983914e1 Mon Sep 17 00:00:00 2001 From: acketon Date: Thu, 11 Mar 2021 13:37:20 -0500 Subject: [PATCH] rebuild --- dist/bu-blocks-frontend.js | 3 +++ docs/bu-blocks-frontend.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/bu-blocks-frontend.js b/dist/bu-blocks-frontend.js index b1dda2b2..499e3613 100644 --- a/dist/bu-blocks-frontend.js +++ b/dist/bu-blocks-frontend.js @@ -549,6 +549,7 @@ const bu_blocks = {}; var allCollapsibleBlocks = []; var allBlocksOpen = false; var collapsibleOpenClass = 'is-open'; + var collapsibleCloseClass = 'is-closed'; /** * Open or close a group of collapsible blocks @@ -569,10 +570,12 @@ const bu_blocks = {}; if ( open ) { container.classList.add( collapsibleOpenClass ); + container.classList.remove( collapsibleCloseClass ); toggle.setAttribute( 'aria-expanded', true ); panel.setAttribute( 'aria-hidden', false ); } else { container.classList.remove( collapsibleOpenClass ); + container.classList.add( collapsibleCloseClass ); toggle.setAttribute( 'aria-expanded', false ); panel.setAttribute( 'aria-hidden', true ); } diff --git a/docs/bu-blocks-frontend.js b/docs/bu-blocks-frontend.js index b1dda2b2..499e3613 100644 --- a/docs/bu-blocks-frontend.js +++ b/docs/bu-blocks-frontend.js @@ -549,6 +549,7 @@ const bu_blocks = {}; var allCollapsibleBlocks = []; var allBlocksOpen = false; var collapsibleOpenClass = 'is-open'; + var collapsibleCloseClass = 'is-closed'; /** * Open or close a group of collapsible blocks @@ -569,10 +570,12 @@ const bu_blocks = {}; if ( open ) { container.classList.add( collapsibleOpenClass ); + container.classList.remove( collapsibleCloseClass ); toggle.setAttribute( 'aria-expanded', true ); panel.setAttribute( 'aria-hidden', false ); } else { container.classList.remove( collapsibleOpenClass ); + container.classList.add( collapsibleCloseClass ); toggle.setAttribute( 'aria-expanded', false ); panel.setAttribute( 'aria-hidden', true ); }