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-infra] Fix dark mode flicker for API pages #45354

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

siriwatknp
Copy link
Member

A simplification of #41911 by apply BrandingCssVarsProvider to the ApiPage directly.
This applies to all API pages with only a few changes.

The rest are fixes of incorrect styles declaration.

@siriwatknp siriwatknp 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-45354--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against e6ba44b

@alexfauquette
Copy link
Member

I think you will need to decouple the toggle buttons like I did in the PR https://github.com/mui/material-ui/pull/41911/files#r1622051793

Otherwise the stats saving is done, but not the style modification. Such that you need to reload the page to switch from light to dark

Capture.video.du.2025-02-19.09-29-04.mp4

@siriwatknp
Copy link
Member Author

I think you will need to decouple the toggle buttons like I did in the PR https://github.com/mui/material-ui/pull/41911/files#r1622051793

Nice catch, updated.

@siriwatknp siriwatknp merged commit 30265e0 into mui:master Feb 20, 2025
22 checks passed
NooBat pushed a commit to NooBat/material-ui that referenced this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants