Open georgewfsantos opened 2 years ago
Can you please share a codesandbox with the whole code so that it's easier to debug? You can start by using this template https://material-ui.com/r/issue-template-latest
@mnajdova , here it is. You just to need to uncomment the respective block of code and comment the other one to alternate between the styled-component and muy/system's styled version. Thank you in advance. https://codesandbox.io/s/quirky-torvalds-ewysk7?file=/src/App.tsx
We've recently changed from styled-components to styled() coming from mui/system. We noticed that transitions do not take place as expected. Below is the code for a font-size transition when we were using styled-components:
When using styled() from mui/system this transition does not take place. The code is as follows:
Ps.: If I define the font-size to be changed in a hover event, using the class '&:hover',the transition will work.
I'm attaching some screen recordings below of the transitions as they worked before, and how they're not working properly now, in that order.
Thanks in advance.
https://user-images.githubusercontent.com/33661312/185409004-e52f128c-d16f-46f7-b991-04ec6005f986.mp4 https://user-images.githubusercontent.com/33661312/185409022-64d9a56a-79f1-4b94-9a4c-650f33bcbf84.mp4