diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 8337ada..804aa2b 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -927,6 +927,7 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $otcM echo "const renderLeftNavigation = (moduleName) => {"; echo " const title = document.querySelector('[data-left-navigation-title]');"; echo " const contentTitle = document.querySelector('[data-left-navigation-content-title]');"; + echo " const contentSection = document.querySelector('.sg-left-navigation-pattern__group-card--content');"; echo " const contentBody = document.querySelector('[data-left-navigation-content-body]');"; echo " const menu = document.getElementById('left-navigation-menu');"; echo " if (title) { title.textContent = moduleName; }"; @@ -934,6 +935,7 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $otcM echo " const entries = portalModuleNavigation[moduleName] || [];"; echo " const activeEntry = entries[0] || '';"; echo " if (contentTitle) { contentTitle.textContent = activeEntry; }"; + echo " if (contentSection) { contentSection.setAttribute('aria-hidden', 'false'); }"; echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[activeEntry] || ''; }"; echo " if (activeEntry === 'Bestellungen') { initBestellungenBindings(); }"; echo " if (activeEntry === 'Marktdurchführungen') { initMarketsBindings(); }"; @@ -955,9 +957,10 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $otcM echo " menu.querySelectorAll('.sg-tab-button').forEach((otherButton) => {"; echo " otherButton.setAttribute('aria-selected', String(otherButton === button));"; echo " });"; - echo " const entryName = button.textContent.trim();"; - echo " if (contentTitle) { contentTitle.textContent = entryName; }"; - echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[entryName] || ''; }"; + echo " const entryName = button.textContent.trim();"; + echo " if (contentTitle) { contentTitle.textContent = entryName; }"; + echo " if (contentSection) { contentSection.setAttribute('aria-hidden', 'false'); }"; + echo " if (contentBody) { contentBody.innerHTML = portalModuleContentCards[entryName] || ''; }"; echo " if (entryName === 'Bestellungen') { initBestellungenBindings(); }"; echo " if (entryName === 'Marktdurchführungen') { initMarketsBindings(); }"; echo " if (entryName === 'Märkte') { initMarketDefinitionsBindings(); }";