-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Migrate onepirate premium template to emotion part1 #26671
[docs] Migrate onepirate premium template to emotion part1 #26671
Conversation
marginTop: theme.spacing(8), | ||
}, | ||
} as const); | ||
const item: SxProps<Theme> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SxProps<Theme>
Sometimes it is necessary and sometimes it is not. I feel confused why this is happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, if fails with flexDirection: 'column',
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create an issue, so that I don't forget to look into it.
}, | ||
sizeSmall: { | ||
...(size === 'small' && { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this works ... when inspecting the element the class that it will always assign is MuiButton-sizeMedium
. It causes me a little noise, shouldn't it be something else?
The same happens for large
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in vicasas#1, if you merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @oliviertassinari. Should we stop using this? shouldForwardProp: (prop) => prop! == 'size'
, why did I understand this was to not pass the property to the DOM element? They correct me if I'm wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! I just saw that size is a Button prop 😅
marginTop: theme.spacing(8), | ||
}, | ||
} as const); | ||
const item: SxProps<Theme> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, if fails with flexDirection: 'column',
.
* better to forward the size * add context
This is a first part of the migration
One of #16947
https://deploy-preview-26671--material-ui.netlify.app/premium-themes/onepirate/