Skip to content
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 returns wrong breakpoint #17171

Closed
ilyador opened this issue Aug 26, 2019 · 1 comment
Closed

useMediaQuery returns wrong breakpoint #17171

ilyador opened this issue Aug 26, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@ilyador
Copy link

ilyador commented Aug 26, 2019

Using

const mobileDisplay = useMediaQuery(theme.breakpoints.down('sm'))

I expect mobileDisplay will be set to true when screen is smaller than 600px, but it triggers only when screen is smaller than 960xp.

@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Aug 26, 2019
@oliviertassinari
Copy link
Member

@ilyador See #13448. I think that it's the exact same concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants