theme-change icon indicating copy to clipboard operation
theme-change copied to clipboard

Codepen example does not seem to work

Open torchello opened this issue 1 year ago • 6 comments

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?

torchello avatar Aug 07 '23 18:08 torchello

I'm not sure about Solid but the Codepen example works as expected and there's no problem with that 🤔

saadeghi avatar Aug 10 '23 14:08 saadeghi

There is a problem in toggle example

gabrieldesousah avatar Aug 11 '23 01:08 gabrieldesousah

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

saadeghi avatar Aug 11 '23 13:08 saadeghi

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

gabrieldesousah avatar Aug 17 '23 13:08 gabrieldesousah

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?

saadeghi avatar Aug 21 '23 16:08 saadeghi

  • 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.

0xPiyush avatar Nov 15 '23 10:11 0xPiyush