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

Responsive breakpoints max-* is not working #10

Closed
longprao opened this issue Dec 7, 2024 · 2 comments
Closed

Responsive breakpoints max-* is not working #10

longprao opened this issue Dec 7, 2024 · 2 comments

Comments

@longprao
Copy link

longprao commented Dec 7, 2024

I have setup a barebone app based on your template, and I notice that by adding preset mantine, it breaks the "max" breakpoints, so that means these are no longer working: max-sm:, max-md:, max-lg:, max-xl:.

For example: max-lg:flex.

It is helpful for desktop-first designs.

Just removing these from the tailwind config will make it work again:

  presets: [
    tailwindPresetMantine({
      mantineBreakpoints: breakpoints,
      mantineColors: colors,
    }),
  ],

Do you have a solution for this?

@songkeys
Copy link
Owner

songkeys commented Dec 8, 2024

This looks like a tailwind problem to me. When using non-px value (like em in mantine), the max-* won't work. Example: https://play.tailwindcss.com/Hxxr9zRmpm

Here is a wordaround: tailwindlabs/tailwindcss#13022 (comment) . I can add this to the next version. Let me know if you have a better idea.

ref: https://arc.net/l/quote/xtrafisa

@songkeys
Copy link
Owner

songkeys commented Dec 8, 2024

This has been resolved in https://github.com/songkeys/tailwind-preset-mantine/releases/tag/v1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants