Commit 4ec0456
authored
fix: correct matchMedia query in theme toggle (#1082)
The "@media" prefix is invalid inside matchMedia() — it takes a bare
media query string. This caused prefersDark to always be false,
so the toggle icon defaulted to the light theme regardless of OS
preference.1 parent 22005f5 commit 4ec0456
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments