-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Drawer] Is there support for a pinned / stacked sidebar? #4752
Comments
@tgoldenberg Google material design doesn't support such kind of drawers. Have a look at this: https://material.google.com/patterns/navigation-drawer.html#navigation-drawer-content |
I was going to ask the same question and the google spec does seem to say that only drawers of type Temporary should overlay the content. Drawers of type Permanent, Persistent and Mini variant all push the content to the right. |
See #3415 which says you can do this with setting zDepth prop. |
@skirunman I'm not sure |
No, I don't have an example as I was just researching if Material-UI would work for our Meteor/React app when I saw your question. We definitely need support for Persistent style of Drawer for our web app as well. Maybe pass in additional styling to the Drawer component? |
@aahan96 Any comments on this? It appears that Material Design does support persistent sidebars. I am sure other people are looking for this functionality besides myself... |
@tgoldenberg You are right. After commenting on the issue, I checked the material design website and got to know about Persistent menus and that's why I reopened the issue. I think this feature should exist. Do you have any PRs to submit for this new feature? |
@aahan96 I'm not familiar enough with the codebase to do that. It seems like an issue that someone with advanced css knowledge might be able to solve. I just adopted material-ui pretty recently. Hoping this issue gets some attention and some help. |
After looking at this a bit I think it would be nice to have 2 more props for the Drawer component so it would be easier to support all the google material navigation drawer styles. So something like:
Just an idea. |
This seems related #157 |
Any news about this feature? Roadmap? |
We ended up implementing this ourselves in our LayoutDrawer.js component. Maybe this will help someone else. FYI, we also are using Meteor.js.
|
I figured out a trick to do this, see my example and code below:
and the css style:
|
I was able to get @nguyenbathanh code working above with some modifications. Mainly I put all of the content that I want to slide when opened in a container div called app-root.
Full Code/CSS
|
to create something like this on the right side : (http://stackoverflow.com/questions/43822173/how-do-i-create-a-responsive-sidebar-component-using-reacts-material-ui/43856873#43856873) |
@rishikilaru I am working on implementing all types of drawers in the Material Design Guidelines. I am almost finished and will open a PR soon. However, these changes are based off the next branch. |
How is the progress of the drawers going? |
@brion-fuller its done! #6878 needs to be reviewed and merged still |
Closed by #7925 |
Sorry to necro this thread, but is there an example that anyone has where it doesn't push the app bar when it opens, like in Google Inbox? |
Description
When I open the
Drawer
component, I would like it to not overlay on top of my layout, but push the content sideways. Similar to the sliding nav functionality in this example - http://react-toolbox.com/#/components/layoutVersions
Using React 15.2 with material-ui 15.2. Also using Meteor.
-->
The text was updated successfully, but these errors were encountered: