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

[material-ui][docs] Document callback to access theme in GlobalStyles #42257

Merged

Conversation

aarongarciah
Copy link
Member

@aarongarciah aarongarciah commented May 16, 2024

Adds a demo on how to access the theme when using GlobalStyles. It's a convenient pattern that is undocumented.

Preview link: https://deploy-preview-42257--material-ui.netlify.app/material-ui/customization/how-to-customize/#3-global-theme-overrides

image

@aarongarciah aarongarciah added docs Improvements or additions to the documentation package: material-ui Specific to @mui/material component: GlobalStyles The React component. needs cherry-pick The PR should be cherry-picked to master after merge labels May 16, 2024
@mui-bot
Copy link

mui-bot commented May 16, 2024

@aarongarciah aarongarciah marked this pull request as ready for review May 16, 2024 11:25
@aarongarciah aarongarciah force-pushed the aarongarcia/docs-global-styles-theme branch from 01b3eeb to acd4089 Compare May 16, 2024 11:30
@aarongarciah aarongarciah requested review from siriwatknp and mnajdova and removed request for siriwatknp May 16, 2024 11:41
@aarongarciah aarongarciah requested review from DiegoAndai and removed request for mnajdova May 23, 2024 14:20
@aarongarciah aarongarciah merged commit 71afb41 into mui:next May 23, 2024
19 checks passed
@aarongarciah aarongarciah deleted the aarongarcia/docs-global-styles-theme branch May 23, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: GlobalStyles The React component. docs Improvements or additions to the documentation needs cherry-pick The PR should be cherry-picked to master after merge package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants