-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(sidenav): animate content resizing for side mode. #2486
Conversation
a12d768
to
5bb32c2
Compare
side
mode.
cc @mmalerba @devversion we had this before and it was super janky on mobile. |
@jelbourn Hm, on the other hand just letting the content jump would probably also feel janky on all platforms |
https://material.io/guidelines/patterns/navigation-drawer.html#navigation-drawer-behavior I vote for adding the animation and adding a note to our docs that in addition to being the recommendation of the spec, we also suggest that they only use "over" or "push" on mobile devices for performance reasons |
@mmalerba I think that is a great idea. Do you want to me to include it into the |
yeah, sounds good |
@mmalerba Just added the info to the overview file. |
@jelbourn is this ok with you? |
Ping @jelbourn for review. |
I'm looking forward to this PR landing. Is there any progress on unblocking it? |
jeremy told me he wanted to test this on mobile, I just did and it looks fine to me. and again ideally people should use over or push on mobile. |
* Animates the `margin-left` and `margin-right` for the `sidenav-content` because otherwise when using `mode="side"` the sidenav content will just jump and not animate as same as the `push` mode.
90be9d6
to
1582a1e
Compare
@mmalerba Thanks for testing it on mobile. |
Sidenavs that initialize with opened are showing the content transition in. Using #3043 to track the issue |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
margin-left
andmargin-right
for thesidenav-content
because otherwise when usingmode="side"
the sidenav content will just jump and not animate as same as thepush
mode.