[CircularProgress] Migrate to emotion#24622
Conversation
|
@material-ui/core: parsed: +0.39% , gzip: +0.26% |
| /* Styles applied to the `circle` svg path if `variant="indeterminate"`. */ | ||
| circleIndeterminate: { | ||
| ...(styleProps.variant === 'indeterminate' && { | ||
| animation: '$circular-dash 1.4s ease-in-out infinite', |
There was a problem hiding this comment.
| animation: '$circular-dash 1.4s ease-in-out infinite', | |
| animation: 'circular-dash 1.4s ease-in-out infinite', |
| /* Styles applied to the root element if `variant="indeterminate"`. */ | ||
| indeterminate: { | ||
| ...(styleProps.variant === 'indeterminate' && { | ||
| animation: '$circular-rotate 1.4s linear infinite', |
There was a problem hiding this comment.
| animation: '$circular-rotate 1.4s linear infinite', | |
| animation: 'circular-rotate 1.4s linear infinite', |
mnajdova
left a comment
There was a problem hiding this comment.
Actually, can we follow how the keyframes are created in the TouchRipple component? https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/ButtonBase/TouchRipple.js#L14 Also note that we will have to convert the styles to the CSS syntax when using keyframes. See - https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/ButtonBase/TouchRipple.js#L62 It is unfortunate, but it is the only way we can ensure that both emotion & styled-components will work correctly. I can help out in the end to test out that both scenarios work.
|
No problem. Ill make the changes. And reach out if I get stuck. 🤞🏻 |
Perfect! Thank you 🙏 |
|
I believe I have converted styling to css successfully. However, I am still getting the last check of Sorry, I am not sure why. |
Take a look on the last comments, should fix the failing test: The CSS styles looks good from glance, will test them in more details tomorrow (sorry don't have the energy to od it right now :) ). Thanks for taking a look at this 👍 |
|
Ok, found the isseue, I was doing instead of Everything should be good now :) |
mnajdova
left a comment
There was a problem hiding this comment.
Good job on this one, it was more tricky than the others :)
|
Thanks, glad to be able to help.
I was not sure I could do this. lol I had something like this in the start but didn't think I could leave Thanks for the help |
* next: (34 commits) [Tab] Migrate to emotion (mui#24651) [TextField] Migrate Input component to emotion (mui#24638) [ImageList] Migrate ImageListItemBar to emotion (mui#24632) [CircularProgress] Migrate to emotion (mui#24622) [DataTable] Add example in docs for data table (mui#24428) [Card] Migrate CardActionArea to emotion (mui#24636) [core] Fix `next` using stale pages (mui#24635) [List] Migrate ListItemIcon to emotion (mui#24630) [ClickAwayListener] Fix `children` and `onClickAway` types (mui#24565) [docs] Include in docs directive to silence `eslint` erroneous warning (mui#24644) [Fab] Migrate to emotion (mui#24618) [TextField] Migrate FilledInput to emotion (mui#24634) [Card] Migrate CardHeader to emotion (mui#24626) [Card] Migrate CardMedia to emotion (mui#24625) [ImageList] Migrate ImageListItem to emotion (mui#24619) [website] Add vision block (mui#24603) [docs] Add sorting section (mui#24637) [TextField] Prepare removal of labelWidth prop (mui#24595) [Dialog] Migrate DialogTitle to emotion (mui#24623) [ImageList] Migrate to emotion (mui#24615) ...
#24405
Lol still not perfect.