-
-
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
Implement "bottom sheets" functionality #2126
Comments
something like what materializecss has done would be perfect. this is the code implementation of their leanModal component |
Similar to the bottom sheet style, yes. But also with fully expanded option to go full screen modal. |
May as well make it capable of any side, not just bottom, as well as center out, etc. |
I believe the material in this case is only supposed to be derived from the bottom up, as that is where the paper is coming from. I guess you can leave it up to the user though, to not follow this if they wish :) |
Where are we at with this ticket? It looks like I should just use https://github.com/TeamWertarbyte/material-ui-bottom-sheet |
This component is very similar to the Drawer component, would we just refactor to incorporate the additional features or utilize it? |
@chadfurman @markoshust As @zabieru96 points out, the Drawer component supports opening from the bottom (see demo). This could be a decent starting point for you. To implement a fully-expanded bottom sheet using a drawer, you'd set Perhaps this is all we'd need to do for an initial offering of BottomSheet:
@oliviertassinari I know you had done some nice work with bottom sheets before, what do you think? |
@kgregory One important limitation we have with the Drawer is that it's not supporting touch events. This is something we could fix later, but it's an important limitation on mobile. We can always build the feature on top of the Drawer, but this is going to require quite some work. We can also build the component on top of the Modal. That might be simpler. I can't say for sure without trying. |
I'd like to use a "fully expanded bottom sheet", ex. https://www.google.com/design/spec/components/bottom-sheets.html#bottom-sheets-modal-bottom-sheets
This functionality is quite needed for modal's that slide up from the bottom. I didn't notice it anywhere in the code.
The text was updated successfully, but these errors were encountered: