Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for sidenav to collapse horizontally but leaving an icon nav visible #2021

Closed
xiki808 opened this issue Nov 29, 2016 · 9 comments
Closed
Assignees
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@xiki808
Copy link

xiki808 commented Nov 29, 2016

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

@chouclee
Copy link
Contributor

#1728 I think this is what you want.

@xiki808
Copy link
Author

xiki808 commented Nov 29, 2016

Yes precisely. I was missing the 'drawer' keyword

@jelbourn jelbourn added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Nov 30, 2016
@jelbourn
Copy link
Member

@mmalerba has a proposal for this already; it's something we'd like to add after beta

@jelbourn jelbourn added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Nov 30, 2016
@Ravi-Rajpurohit
Copy link

this may help ..
https://github.com/Ravi-Rajpurohit/mini-md-sidenav

@AyushiSrivastava20
Copy link

@Ravi-Rajpurohit so can push mode work for your code?

@matte00
Copy link

matte00 commented Nov 16, 2017

@jelbourn

@mmalerba has a proposal for this already; it's something we'd like to add after beta

Any news in RC?

@willshowell
Copy link
Contributor

Sounds like a dupe of #1728

@ghost
Copy link

ghost commented Aug 25, 2018

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

8 participants