diff --git a/assets/js/theme.js b/assets/js/theme.js index b19871a..ae3d255 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -88,7 +88,8 @@ document.addEventListener('DOMContentLoaded', (event) => { function openSearchForm() { searchContainer.classList.add('is-pre-active'); window.setTimeout(() => { - searchContainer.setAttribute('aria-expanded', 'true'); + document.getElementById('openWebsiteSearchButton').setAttribute('aria-expanded', 'true'); + document.getElementById('closeWebsiteSearchButton').setAttribute('aria-expanded', 'true'); searchContainer.classList.add('is-active'); searchContainer.classList.remove('is-pre-active'); }, 100); @@ -96,7 +97,8 @@ document.addEventListener('DOMContentLoaded', (event) => { // Close search form function closeSearchForm() { - searchContainer.setAttribute('aria-expanded', 'false'); + document.getElementById('openWebsiteSearchButton').setAttribute('aria-expanded', 'false'); + document.getElementById('closeWebsiteSearchButton').setAttribute('aria-expanded', 'false'); searchContainer.classList.remove('is-active'); searchContainer.classList.remove('is-pre-active'); } diff --git a/contao/templates/custom-section/mod_custom_section_header_sac_pilatus.html.twig b/contao/templates/custom-section/mod_custom_section_header_sac_pilatus.html.twig index d0581df..f367971 100644 --- a/contao/templates/custom-section/mod_custom_section_header_sac_pilatus.html.twig +++ b/contao/templates/custom-section/mod_custom_section_header_sac_pilatus.html.twig @@ -65,13 +65,13 @@ Kurse - - diff --git a/contao/templates/mod_search_overlay.html5 b/contao/templates/mod_search_overlay.html5 index 32e1c64..3fc8a38 100644 --- a/contao/templates/mod_search_overlay.html5 +++ b/contao/templates/mod_search_overlay.html5 @@ -1,5 +1,5 @@ -