#breakpoints bug

5 messages · Page 1 of 1 (latest)

hushed egret
#

I updated mantine to 6.0.0-alpha.0 version. After update, I tried to use fn.smallerThan("sm") function. When i used it, It returns @media (max-width: 47.9375rem) but breakpoints.sm returns 48rem. it makes some problems. why is there difference between fn.smallerThan("sm") and breakpoints.sm?

#

In my opinion, conversion to rem units has no need.

oak steppe
hushed egret
#

Should i change breakpoints in <MantineProvider /> or replace theme.fn.smallerThan with media query string?

oak steppe