-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Bug, feature request, or proposal:
feature request
What is the expected behavior?
Once the sidenav is closed, a portion of it will still remain visible. Very similar to WordPress' admin menu, where the sidenav shows text and an icon for each menu item, and the same sidenav can be closed, leaving the icons only showing.
What is the current behavior?
Sidenav totally hides once the toggled to close.
What are the steps to reproduce?
The way I go around this is to override the translation in md-sidenav.md-sidenav-closed and md-sidenav.md-sidenav-closing css classes, keeping the sidenav still partly visible. That's fine, but in order to slide the content box with the new translation of sidenav, I had to animate the content box, for which I am pretty sure this can be done in a better way or in-house, within the sidenav component, thus adding this type of feature as a quick option.
Please check my plunker to see what I mean with the above.
http://plnkr.co/edit/LcRDIHNFjHKLFTaMdNEM?p=preview
What is the use-case or motivation for changing an existing behavior?
Mainly I would like to know the proper way to do this, if there is a better way than having to animate the content box. But it would also be great if this feature is added to sidenav component so we can quickly set an option to make collapsing act like explained.
Which versions of Angular, Material, OS, browsers are affected?
Angular: 2.1.1
Material: alpha-10
chrome