theme-change
theme-change copied to clipboard
Codepen example does not seem to work
I can't make it working with SolidJS (SolidStart) with the recommended setup:
export default function Root() {
onMount(async () => {
themeChange();
});
/...
and
<button class="btn btn-primary" data-set-theme="dark">Dark Theme</button>
<button class="btn btn-secondary" data-set-theme="light">Light Theme</button>
When I click the button nothing happens and no errors in console. I checked the codepen example and it does not work too. Any ideas?
I'm not sure about Solid but the Codepen example works as expected and there's no problem with that 🤔
There is a problem in toggle example
There is a problem in toggle example
There is a problem
is not helpful. What problem?
https://github.com/saadeghi/theme-change/assets/7342023/653ecbb1-8018-4c3e-81cf-4f00caf2c76f
https://github.com/saadeghi/theme-change/assets/11802211/f084d4c0-2968-4289-b978-5f6c394613f2
In my tests toglle don't work, but the other functions yes
In my tests toglle don't work, but the other functions yes
- Does this happen on other browsers as well?
- Does this happen on incognito mode?
- Are you using any software or plugin (like adblocker) that may manipulate web pages?
- Does this happen on other browsers as well? -- For me it happens on all Chromium based browsers.
- Does this happen on incognito mode? -- Yes it does.
- Are you using any software or plugin (like adblocker) that may manipulate web pages? -- Test with and without the adblocker/darkreader, in both cases it did not work.