bootstrap/site
Jeroen Akkerman f0be063c97
Update color-modes.js (#38626)
* Update color-modes.js

Fix IF statement in the prefer-color-scheme change listener always evaluating to `true` and changing the theme to "dark" even when "light" is set as the preferred theme.

| `||` | `x !== "light"` | `x !== "dark"` | Result |
|--|:--:|:--:|:--:|
| `x = "light"` | ○ | ● | ● |
| `x = "dark"` | ● | ○ | ● |
| `x = "auto"` | ● | ● | ● |
| `x = "bogus"` | ● | ● | ● |
<hr>

| `&&` | `x !== "light"` | `x !== "dark"` | Result |
|--|:--:|:--:|:--:|
| `x = "light"` | ○ | ● | ○ |
| `x = "dark"` | ● | ○ | ○ |
| `x = "auto"` | ● | ● | ● |
| `x = "bogus"` | ● | ● | ● |

* Implement re-read of stored theme
2023-05-25 21:18:49 -07:00
..
assets Update devDependencies (#38537) 2023-05-01 00:40:57 +03:00
content Add data attr selector for dark mode navbars (#38522) 2023-05-19 09:05:09 -07:00
data Docs: add missing twbs/examples and change sorting (#38407) 2023-04-05 09:10:47 +03:00
layouts More darkmode examples (#38058) 2023-04-27 18:13:35 -07:00
static Update color-modes.js (#38626) 2023-05-25 21:18:49 -07:00