-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Bug]: on small screens, clicking outside of the side panel should close the side panel #50
Comments
Proposal: On mobile devices, for the drawer component, instead of That seems to be the recommended approach: https://mui.com/material-ui/api/drawer/ |
Second link should have been: https://mui.com/material-ui/react-drawer/#responsive-drawer |
Yeah, we could use a |
Bloat shouldn't be an issue if we stick with |
Agreed. We already do a mobile check, so should be possible to push that down. |
Caveat: We may have issues with the sidebar panel closing when opening / collapsing namespaces with the temporary drawer, not sure how it works. But think would be worth a shot to try! |
I believe it works by controlling the |
Can avoid the blurring via |
Currently, when viewing the API docs on a mobile device (small screens), when the side panel is open, the only way to close the panel is by clicking the toggle button.
However, I often found that I wanted to tap outside the panel on, e.g., the package README, expecting the side panel to automatically close in order to return me to the README view. This is not the case, however, as I need to explicitly tap the close button.
I propose, similar to how we query the view port to determine whether the side panel should be open on page load, we use the view port width to determine whether to add a click/touch handler to close the side panel on smaller devices.
The text was updated successfully, but these errors were encountered: