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

[styles] Change the withTheme API #14565

Merged
merged 1 commit into from
Feb 18, 2019

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 17, 2019

I have realized that #14560 was too ambitious to be done in a single pass. I'm breaking it into different chunks.

Breaking changes

Remove the first option argument of withTheme(). The first argument was a placeholder for a potential future option. We have never found a need for it. It's time to remove this argument. It matches the emotion and styled-components API.

-const DeepChild = withTheme()(DeepChildRaw);
+const DeepChild = withTheme(DeepChildRaw);

@oliviertassinari oliviertassinari added breaking change package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. labels Feb 17, 2019
@eps1lon eps1lon mentioned this pull request Feb 17, 2019
56 tasks
@oliviertassinari oliviertassinari added good first issue Great for first contributions. Enable to learn the contribution process. PR: good for merge and removed good first issue Great for first contributions. Enable to learn the contribution process. labels Feb 17, 2019
@oliviertassinari oliviertassinari merged commit 9e18f22 into mui:next Feb 18, 2019
@oliviertassinari oliviertassinari deleted the change-with-theme-api branch February 18, 2019 08:59
@eps1lon eps1lon added this to the v4 milestone Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants