-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[useMediaQuery] Safari scrollbar unstable #22812
Comments
It's definitely a bug on the Safari side, here is what the specification says:
The same issue in the bug tracker of Safari: https://bugs.webkit.org/show_bug.cgi?id=52653. I could also find this nice illustration: tailwindlabs/tailwindcss#1521 of the problem. Regarding the resolution, the documentation is affected since we started using media queries over
const breakpoint = useBreakpointValue(); // xs or sm, etc.
const prop = useBreakpoint({ xs: 'none', md: 'block' }); // none or block would do a great job. Perfect for when you need to switch from a CSS to JS implementation of something or when you want to have the system responsive capability on React component props. cc @mnajdova. Benchmark See #23885. I'm leaning for option 1. |
Current Behavior 😯
Expected Behavior 🤔
The menu should toggle once only when the menu icon is clicked.
Steps to Reproduce 🕹
Steps:
Context 🔦
I cannot reproduce this issue on the homepage (https://material-ui.com), only on the documentation pages.
I cannot reproduce this bug in Firefox, even at the same resolution and window width that the error occurs at in Safari.
The bug only happens when the Safari window is a specific size:
Your Environment 🌎
The text was updated successfully, but these errors were encountered: