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

Fix Dark Mode Toggle #174

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Fix Dark Mode Toggle #174

merged 3 commits into from
Jan 21, 2025

Conversation

versile2
Copy link

Fixed dark mode toggle by changing javascript to be just a function instead of a trigger and calling the function after the StateHasChanged. Modified the function to match future "mud-theme-provider" className or the current index.html structure in that order.

…w className for mud theme provider whenever it is changed. Also moved when it happens to be consistent regardless of state of compiler.
@henon henon requested a review from ScarletKuro January 21, 2025 19:34
@ScarletKuro ScarletKuro merged commit cb820bc into MudBlazor:main Jan 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants