0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-07 00:46:15 +01:00
Bootstrap/site/static/docs/5.3/assets
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
..
brand Drop unused bootstrap-social-logo.png 2023-03-10 12:36:46 -06:00
img Slightly improve PNG files compression (#38438) 2023-04-11 21:23:12 +03:00
js Update color-modes.js (#38626) 2023-05-25 21:18:49 -07:00