You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I use latest version of all @mantine/* packages
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 of styles.css those transitions don't work and the transition is rendered as fade instead. This appears to be the case for any component that uses Transition (e.g. Modal, Tooltip etc.).
This seems very similar to #6458 so perhaps a similar fix is needed? It looks like removing the use of rem() in src/components/Transition/transitions.ts should do it. Is this an acceptable fix?
Self-service
I would be willing to implement a fix for this issue
The text was updated successfully, but these errors were encountered:
DanielGibbsNZ
changed the title
Some transitions depend on --mantine-scale which is only included in the
Some transitions depend on --mantine-scale which is only included in styles.css
Dec 25, 2024
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: