Responsive Modal Variants #1325
Unanswered
sammyaxe
asked this question in
Feature Requests
Replies: 1 comment 1 reply
-
Definitely something needed and relevant @sammyaxe . |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now there is no way to have breakpoint specific variant for modals.
There are many cases where something that works great as a modal would work much better as flyout on mobile.
Or even if flyout from the side makes sense on desktop, maybe it makes more sense to flyout from the bottom on mobile.
Adding non-flux example of such implementation that has breakpoint specific drawer behaviour.
IMG_3439.MP4
If this feature is implemented it would make a lot of sense to have
passthrough
variant, this would allow to have certain contents inline on desktop, but then convert them to flyouts on mobile.Let me give you an example of a sidebar. Sidebar is something that renders on desktop, but then gets hidden on mobile, and requires DOM repetition to then implement as flyout/drawer.
All of this could be avoided if we could have passthrough on certain breakpoints and flyout on others.
Beta Was this translation helpful? Give feedback.
All reactions