-
-
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] Mini variant with SwipableDrawer #19606
Comments
I'm gonna try and add a swipable function from the swipabledrawer api to a Mini Variant Drawer sandbox. |
Somebody take a look at this sandbox: I am able to open and close it from clicking it, but I am not able to swipe it close on mobile. Is there anything I am missing in the Sandbox or is there anything that is overriding it like props? I used the mini variant drawer as a base template and just added some of the props from the swipeable api documentation, while also using its demo for comparison. From what I think, the fact we are styling it to close slightly might be the problem. This issue #13361 Just doing this first to know my limitations, before creating a PR. |
I noticed from the console of the the SwipeableDrawer sandbox example, the Mui-drawer modal dissapears when closed: |
Is there any update on this issue? I am looking for the same solution. |
There's an example in the docs on how to make a small drawer with only icons shown that can be expanded to its full width.
Super useful on small screens. Unfortunately, this doesn't seem possible to implement with SwipableDrawer.
Summary 💡
If there was a way to keep the content of the swipable drawer in the dom when it's closed, then a similar example to that in the docs could be used.
Motivation 🔦
Mini drawers are useful on small screens. Small screens usually have touch capabilities so people naturally want to open/close drawers by swiping.
The text was updated successfully, but these errors were encountered: