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

[website] Fix theme mode toggle state #35216

Merged
merged 2 commits into from Nov 21, 2022

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Nov 21, 2022

Issue

On https://mui.com/material-ui/getting-started/overview/, when setting mode as system (user's preference is "dark") and goto the homepage the mode toggle appearance is incorrect.

Screen.Recording.2565-11-21.at.14.37.46.mov

Fix

Use the systemMode to determine if the actual mode is light or dark.

Screen.Recording.2565-11-21.at.14.59.23.mov

@siriwatknp siriwatknp added bug 🐛 Something doesn't work website Pages that are not documentation-related, marketing-focused. labels Nov 21, 2022
@mui-bot
Copy link

mui-bot commented Nov 21, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35216--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against 724a39e

@siriwatknp siriwatknp merged commit d37b9ba into mui:master Nov 21, 2022
alexfauquette pushed a commit to alexfauquette/material-ui that referenced this pull request Nov 22, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work website Pages that are not documentation-related, marketing-focused.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants