Keep left navigation toggle active on mobile
This commit is contained in:
@@ -61,8 +61,8 @@
|
|||||||
menu.hidden = !expanded;
|
menu.hidden = !expanded;
|
||||||
toggle.setAttribute('aria-expanded', String(expanded));
|
toggle.setAttribute('aria-expanded', String(expanded));
|
||||||
toggle.textContent = expanded ? 'Ausblenden' : 'Einblenden';
|
toggle.textContent = expanded ? 'Ausblenden' : 'Einblenden';
|
||||||
toggle.classList.toggle('sg-button--active', expanded);
|
toggle.classList.add('sg-button--active');
|
||||||
toggle.classList.toggle('sg-button--inactive', !expanded);
|
toggle.classList.remove('sg-button--inactive');
|
||||||
};
|
};
|
||||||
|
|
||||||
const syncMode = () => {
|
const syncMode = () => {
|
||||||
|
|||||||
@@ -28,6 +28,10 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sg-left-navigation-pattern__toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.sg-left-navigation-pattern__group-card {
|
.sg-left-navigation-pattern__group-card {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
@@ -55,13 +59,14 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sg-left-navigation-pattern__toggle {
|
||||||
|
display: inline-flex;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.sg-left-navigation-pattern__group-card--navigation {
|
.sg-left-navigation-pattern__group-card--navigation {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-left-navigation-pattern__toggle {
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user