Full screen menu #3219
Unanswered
mule-stand
asked this question in
Questions
Replies: 1 comment 4 replies
-
Yes, it looks like a Dialog. If you want to make it modal, but keep an element outside accessible (the disclosure button), I'm not sure I understand how it's difficult to keep track of. Don't you have access to the disclosure element? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
*For simplicity, I'm going to use style props for styles
I have a header and a menu button in it.
When I click on the button, I want to open a full screen menu under the header (full screen width and remaining height).
I decided to use Dialog for this purpose.
I set a fixed height for the header (60px) and set styles for Dialog:
First question: is it a good idea to choose Dialog for this at all?
Second question: problem with closing the menu, I want to open and close it with this button, but I can't interact with items outside the dialog. I specifically want the menu to open and close through this button, no body scroll is possible, and nothing happens when interacting outside with other elements (except DialogDisclosure) (I can partially do this with hideOnInteractOutside). Ideally I can use getPersistentElements, but it doesn't look very nice and requires additional mental load to keep track of it. How can I solve my problem?
Translated with DeepL.com (free version)
Beta Was this translation helpful? Give feedback.
All reactions