What package has an issue
@mantine/core
Describe the bug
I'm using Mantine V7 with Next.js 13. When I use the Card.Section component, something strange happens.
In development mode, everything looks fine because the negative margins work as expected. However, when I build my project for production, the negative margin stops working.π€
I noticed in the Card.Section css that margins for top, right, bottom, and left are defined individually. However, during the build, they get combined into one shorthand margin property.
So if one of these CSS variables isn't defined, the entire margin property gets ignored.
Here is some screenshots
In development (notice the price details section of the card)
In production
What version of @mantine/* page do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.0.0-beta.2
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
None
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
I don't think this issue is specific to Mantine; it might be related to the bundler we're using.
Could we solve this by providing fallback values to CSS variables at the Mantine level? π‘
If its not possible, Does anyone know how to fix it?