Skip to content
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

[pickers] Enable the sx prop on all components #30749

Merged
merged 11 commits into from
Jan 26, 2022

Conversation

boutahlilsoufiane
Copy link
Contributor

@boutahlilsoufiane boutahlilsoufiane commented Jan 23, 2022

Fix #29385

This fixes the problem of not being able to change the style of internal components despite passing the prop sx. The problem happens because of using the option skipSx. In order to fix that we removed the option skipSx from all components and we removed the option from the utility styled.

Note:
I’m not sure about the changes in the file TYPESCRIPT_CONVENTION.md.

@mui-bot
Copy link

mui-bot commented Jan 23, 2022

Details of bundle changes

@material-ui/lab: parsed: -0.19% 😍, gzip: -0.06% 😍

Generated by 🚫 dangerJS against 9acf56c

@mnajdova mnajdova requested a review from hbjORbj January 24, 2022 09:26
docs/src/pages/system/styled/styled-pt.md Outdated Show resolved Hide resolved
docs/src/pages/system/styled/styled-zh.md Outdated Show resolved Hide resolved
packages/mui-system/src/styled.test.js Outdated Show resolved Hide resolved
packages/mui-system/src/createStyled.js Outdated Show resolved Hide resolved
@boutahlilsoufiane
Copy link
Contributor Author

Hi @mnajdova, thanks a lot for the quick review, I really appreciate your time and your effort. Your review encouraged me to go ahead in the PR.

@mnajdova mnajdova changed the title Removing skipSx [pickers] Enable the sx props on all components Jan 25, 2022
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks a lot for the contribution

@mnajdova
Copy link
Member

@flaviendelangle FYI

@flaviendelangle
Copy link
Member

Thanks !
I'll mark this PR on my migration to X to replicate all the changes

@danilo-leal danilo-leal added the component: pickers This is the name of the generic UI component, not the React module! label Jan 25, 2022
@boutahlilsoufiane
Copy link
Contributor Author

Hi @mnajdova, thanks a lot for accepting the changes.

@mnajdova mnajdova merged commit 0436605 into mui:master Jan 26, 2022
@mnajdova mnajdova changed the title [pickers] Enable the sx props on all components [pickers] Enable the sx prop on all components Jan 26, 2022
wladimirguerra pushed a commit to wladimirguerra/material-ui that referenced this pull request Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DatePicker] The style for Paper not working
5 participants