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 = () => {
+9 -4
View File
@@ -28,6 +28,10 @@
display: none;
}
.sg-left-navigation-pattern__toggle {
display: none;
}
.sg-left-navigation-pattern__group-card {
min-width: 0;
}
@@ -55,13 +59,14 @@
margin-bottom: 0;
}
.sg-left-navigation-pattern__toggle {
display: inline-flex;
flex: 0 0 auto;
}
.sg-left-navigation-pattern__group-card--navigation {
flex: 0 0 auto;
width: 100%;
max-width: none;
}
.sg-left-navigation-pattern__toggle {
flex: 0 0 auto;
}
}