Some transitions depend on --mantine-scale which is only included in styles.css #7306
Closed
2 tasks done
Labels
Fixed patch
Completed issues that will be published with next patch (1.0.X)
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.15.2
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
Some transitions e.g.
rotate-left
are dependent on the--mantine-scale
CSS variable. This means that when importing individual CSS files instead ofstyles.css
those transitions don't work and the transition is rendered as fade instead. This appears to be the case for any component that usesTransition
(e.g.Modal
,Tooltip
etc.).Reproduction:
If I import
@mantine/core/styles.css
or even just define--mantine-scale: 1
then the transitions work as expected.If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/mantine-react-template-forked-g56xc7
Possible fix
This seems very similar to #6458 so perhaps a similar fix is needed? It looks like removing the use of
rem()
insrc/components/Transition/transitions.ts
should do it. Is this an acceptable fix?Self-service
The text was updated successfully, but these errors were encountered: