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

Remove 'dark' from document.body.classList when starting interface with dark_theme: false #6614

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

mamei16
Copy link
Contributor

@mamei16 mamei16 commented Dec 28, 2024

This PR fixes the problem described in issue #6613.
It's likely not fixing the root cause, which would be to not set the class name of the body to 'dark' in the first place when dark_theme is set to false in the settings.
However, I was unable to determine what causes this behavior, so I simply removed 'dark' from the classList in the same piece of javascript that adds it when dark_theme is true at startup.

Checklist:

@oobabooga
Copy link
Owner

That's indeed weird, maybe there is a bug in the new gradio version (I recently updated to 4.37). Thanks for the fix.

@oobabooga oobabooga merged commit cca4ac5 into oobabooga:dev Dec 30, 2024
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.

2 participants