Keep left navigation toggle active on mobile

This commit is contained in:
2026-06-04 17:41:38 +02:00
parent 3611d9732f
commit 5731fd6fdc
2 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -61,8 +61,8 @@
menu.hidden = !expanded;
toggle.setAttribute('aria-expanded', String(expanded));
toggle.textContent = expanded ? 'Ausblenden' : 'Einblenden';
toggle.classList.toggle('sg-button--active', expanded);
toggle.classList.toggle('sg-button--inactive', !expanded);
toggle.classList.add('sg-button--active');
toggle.classList.remove('sg-button--inactive');
};
const syncMode = () => {