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

[wip] Improve RTL switch on docs #45360

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Feb 19, 2025

Fixes #44534

The main change is reverting #28495
I am bringing back again this change. There is a big difference between components pages vs other pages that needs to be investigated. I had a false positive when doing this change because I was not testing the components pages.

Preview: https://deploy-preview-45360--material-ui.netlify.app/

@mnajdova mnajdova added the scope: docs-infra Specific to the docs-infra product label Feb 19, 2025
@mui-bot
Copy link

mui-bot commented Feb 19, 2025

Netlify deploy preview

https://deploy-preview-45360--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 56e4c56

<AppWrapper emotionCache={emotionCache} pageProps={pageProps}>
{getLayout(<Component {...pageProps} />)}
</AppWrapper>
<CacheProvider value={emotionCache}>
Copy link
Member

@oliviertassinari oliviertassinari Feb 19, 2025

Choose a reason for hiding this comment

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

This reminds me of another problem. Why do we expose @mui/material-nextjs to users if we don't fully use it on the docs (we only use documentGetInitialProps from it, but not AppCacheProvider)? We should move to dogfood it?

(Arguably, it's a @mui/system-nexjs module but that's another problem)

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: out-of-date The pull request has merge conflicts and can't be merged scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs-infra] Fix light/dark mode & RTL change speed regression
3 participants