-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Labels
STATUS-1: needs triageThis doesn't seem rightThis doesn't seem rightTYPE: bugSomething isn't workingSomething isn't working
Description
Which package is affected?
Documentation Website
Describe the bug
When I go to the Qwik UI Website it forces light mode (although I have prefers dark mode)
Then when I change to dark mode, refresh the page I have to click the theme toggler twice to change from dark.
On click 1 it changes the class from "dark" to "dark",
On click 2 it changes from "dark" to "light"
2 issues:
- Prefers color scheme preferences should be adhered to
- Theme toggler should require only 1 click to change themes.
I thought I knew where the bug was coming from but this seems to be coming from
"qwik-themes": "^0.2.0" package.
As a note: the Qwik Cookbook theme-management page has a similar bug.
Reproduction
Steps to reproduce
- Go to qwikui.com
- page will have a white background.
- Change the theme to dark.
- Refresh the page
- Click the theme toggler button (and theme won't change)
- Click the theme toggler button (theme changes)
System Info
System:
OS: Windows 11 10.0.22631
CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
Memory: 1.09 GB / 7.74 GB
Binaries:
Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.14.2 - ~\AppData\Roaming\npm\pnpm.CMDAdditional Information
No response
Metadata
Metadata
Assignees
Labels
STATUS-1: needs triageThis doesn't seem rightThis doesn't seem rightTYPE: bugSomething isn't workingSomething isn't working