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

breakpoints set in pixels are not working with hiddenFrom and visibleFrom props #5457

Closed
1 of 2 tasks
misha3228 opened this issue Dec 20, 2023 · 1 comment
Closed
1 of 2 tasks
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@misha3228
Copy link

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.3.1

What package has an issue?

@mantine/core

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Chrome

Describe the bug

I set the breakpoints in pixels in the theme -

image

Breakpoints variables in CSS modules work in pixels as expected.

But when using hiddenFrom and visibleFrom props, media queries use em units -

image

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
rtivital added a commit that referenced this issue Jan 3, 2024
…em when `visibleFrom` and `hiddenFrom` props are used (#5457)
@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Jan 3, 2024
@rtivital
Copy link
Member

rtivital commented Jan 9, 2024

Fixed in 7.4.1

@rtivital rtivital closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

No branches or pull requests

2 participants