-
Notifications
You must be signed in to change notification settings - Fork 36
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
ColorModeScript bug #264
Comments
Hi, have you reset the browser cache before making change in the IDE ? |
@fabien-ml Yes, and I also tried incognito mode and a completely new browser (brave). |
I don't have that problem, what version of hope-ui are you using ? |
Am using version |
Looks like it works with SolidStart but not a Solidjs app |
I will create a codesandbox and update the issues template |
I'm facing some weird stuff on this. The fix that i've done works in the library monorepo but not when published on npm |
@fabien-ml am not sure what causing the issue, for now am using a hack which is to set the localStorage value manually. |
Looks like the As a quick fix I can add an |
@fabien-ml I think it would be good to include it in |
@oSethoum i've made the fix in You have to do: <>
<ColorModeScript initialColorMode="dark" />
<HopeProvider initialColorMode="dark" >
<App />
</HopeProvider>
</> The |
@fabien-ml Thanks for the quick fix, what if |
The problem is that |
@fabien-ml Yeah that's true, another way to do it is as a boolean property to |
Describe the bug
ColorModeScript not using the initial value provided but always using
system
default value.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: