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

[docs] Remove last dependencies on makeStyles from @material-ui/core/styles #26246

Merged
merged 5 commits into from
May 12, 2021

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented May 11, 2021

This PR removes last dependencies on makeStyles from @material-ui/core/styles. Next step would be removing this util from the core.

@mui-pr-bot
Copy link

mui-pr-bot commented May 11, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against a0b757a

},
}));
}),
{ defaultTheme },
Copy link
Member Author

Choose a reason for hiding this comment

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

Where the code is not publicly visible on docs, or styles are too complicated, I used the defaultTheme prop.

setChecked(newChecked);
setExpandPaths(newChecked ? allNodeIds : []);
onChange={(event) => {
setChecked(event.target.checked);
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops this was broken in #25871

@mnajdova mnajdova marked this pull request as ready for review May 11, 2021 12:57
@mnajdova mnajdova requested a review from oliviertassinari May 11, 2021 12:57
twitter: {
width: 160,
display: 'flex',
const Content = styled(Container)(({ theme }) => ({
Copy link
Member

Choose a reason for hiding this comment

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

This page is going away, it would have been simpler to change the import only (it seems).

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh well..

@@ -207,7 +207,8 @@ const styles = (theme) => ({
},
},
});
const useStyles = makeStyles(styles, { name: 'MarkdownElement', flip: false });
const defaultTheme = createTheme();
Copy link
Member

Choose a reason for hiding this comment

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

What about the dark mode and RTL toggle?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am setting only defaultTheme. If there is a ThemeProvider with different theme it will be picked up. Is there some scenario that is not working?

Copy link
Member

@oliviertassinari oliviertassinari May 11, 2021

Choose a reason for hiding this comment

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

OK my bad

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 11, 2021
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label May 11, 2021
@mnajdova mnajdova requested a review from oliviertassinari May 11, 2021 16:14
@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label May 11, 2021
@mnajdova mnajdova merged commit 4907b23 into mui:next May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants