diff options
| author | Jeroen Akkerman <[email protected]> | 2023-05-26 06:18:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-25 21:18:49 -0700 |
| commit | f0be063c9792f6fd123d933335efd0d8cc7f6f1f (patch) | |
| tree | 7ecbf3595a38132961d6a3101a4a6d303a9b43a8 /dist/css/bootstrap.css | |
| parent | de6b9a7933a9187101204e1e1f90a532ff61237b (diff) | |
| download | bootstrap-f0be063c9792f6fd123d933335efd0d8cc7f6f1f.tar.xz bootstrap-f0be063c9792f6fd123d933335efd0d8cc7f6f1f.zip | |
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
Diffstat (limited to 'dist/css/bootstrap.css')
0 files changed, 0 insertions, 0 deletions
