diff --git a/patterns/vsf-card-listen-fundamentalanalyse-drawer.html b/patterns/vsf-card-listen-fundamentalanalyse-drawer.html index 78cd0bb..b6202ae 100644 --- a/patterns/vsf-card-listen-fundamentalanalyse-drawer.html +++ b/patterns/vsf-card-listen-fundamentalanalyse-drawer.html @@ -170,15 +170,15 @@ - PE Kennzahl PE. + PE Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt. 27.5 - PE Forward Kennzahl PE Forward. + PE Forward Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt. 26.4 - PEG Forward Kennzahl PEG Forward. + PEG Forward Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt. 0.35 @@ -319,6 +319,13 @@ button.addEventListener('click', (event) => { event.stopPropagation(); const nextState = wrap.dataset.open !== 'true'; + document.querySelectorAll('.sg-sandwich-menu-wrap').forEach((otherWrap) => { + const otherButton = otherWrap.querySelector('.sg-sandwich-button'); + otherWrap.dataset.open = 'false'; + if (otherButton) { + otherButton.setAttribute('aria-expanded', 'false'); + } + }); wrap.dataset.open = String(nextState); button.setAttribute('aria-expanded', String(nextState)); }); @@ -333,6 +340,13 @@ button.addEventListener('click', (event) => { event.stopPropagation(); const nextState = wrap.dataset.open !== 'true'; + document.querySelectorAll('.sg-help-icon-wrap').forEach((otherWrap) => { + const otherButton = otherWrap.querySelector('.sg-help-icon'); + otherWrap.dataset.open = 'false'; + if (otherButton) { + otherButton.setAttribute('aria-expanded', 'false'); + } + }); wrap.dataset.open = String(nextState); button.setAttribute('aria-expanded', String(nextState)); });