-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature request: open drawers from the left #3360
Comments
👍 for request |
…se side (if vertical then on the top instead of the bottom, otherwise on the left instead of the right side). Fixes palantir#3360
Hello just wanted to confirm if the new prop 'reverse' is deployed... If not is there any other ways to make the transition of the drawer to go from left to right? Below is the code I have used. Any help is appreciated.
Please help |
@Darkness126 It's not released yet, I've submitted a PR few days back, I'm waiting for approval/merge. As for quick fix, you can use .your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical).bp3-overlay-enter,
.your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical):not(.bp3-reversed).bp3-overlay-appear {
transform: translateX(-100%);
}
.your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical).bp3-overlay-enter-active,
.your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical):not(.bp3-reversed).bp3-overlay-appear-active {
transform: translateX(0);
transition-property: transform;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 1, 0.75, 0.9);
transition-delay: 0;
}
.your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical).bp3-overlay-exit {
transform: translateX(0);
}
.your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical):not(.bp3-reversed).bp3-overlay-exit-active {
transform: translateX(-100%);
transition-property: transform;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0.4, 1, 0.75, 0.9);
transition-delay: 0;
}
.your-custom-class-for-drawer.bp3-drawer:not(.bp3-vertical) {
left: 0;
} And simply replace Update: In hack provided at the top, I forgot to add |
Thank you very much, I'm able to get the expected behavior, 👍 |
I would like to know if I can set the direction of drawer on the page. I would like to make drawer appear on the left of web page. I set left:0 for drawer component. It appears on the left. However, it still transform from right to left. This is not result I would like. How can I solve this problem?
The text was updated successfully, but these errors were encountered: