From 1d9a536095fc052df9608150679696d197e4b13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Thu, 21 May 2026 16:54:23 +0200 Subject: [PATCH] Align help-icon content and one-open-at-a-time behavior with template --- ...card-listen-fundamentalanalyse-drawer.html | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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)); });