Julien Déramond
52cc9342cb
Bump copyright year to 2024
2024-02-05 20:13:23 -08:00
MewenLeHo
73e1dcf43e
Fix color-mode.js
2023-10-31 09:42:15 -07:00
Mark Cowan
ad9cb223a9
Fix always-false boolean condition ( #38665 )
2023-05-30 09:00:26 +03:00
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
Mark Otto
6855ce9512
Revert "Guard more in color-modes.js ( #38235 )" ( #38280 )
...
This reverts commit 474bf2aed1
.
2023-03-19 17:35:57 -07:00
XhmikosR
474bf2aed1
Guard more in color-modes.js ( #38235 )
2023-03-14 20:30:11 +02:00
Julien Déramond
31221272e0
Fix console error in examples pages du to no theme switcher ( #38074 )
2023-02-17 08:56:30 +02:00
Julien Déramond
39905711fa
Remove autofocus on theme switch when page is loaded
2023-01-08 15:39:31 -08:00
Patrick H. Lauke
212c0dfd07
Docs: Make theme switcher accessible ( #37780 )
...
* Make theme switcher accessible
* set an explicit `aria-label` to the switcher (as the `<span>` is not sufficient, as it can be display:none'd and then the button has no accName)
* make the theme buttons actual `aria-pressed` toggles
* Dynamically update aria-label for theme switcher
* Explicitly reset focus after activating theme
* Use innerText for the constructed dynamic aria-label
this way, if the text ever gets changed in the html, this will adapt appropriately
* Tweak accessible name for the dropdown
* Fixup
* Use `textContent` instead of `innerText`
2023-01-01 21:54:46 -08:00
Patrick H. Lauke
2cc580e2d1
Docs: remove remnants of Twitter / bump dates ( #37779 )
2023-01-01 16:30:53 -08:00
XhmikosR
cf9454caa0
Release v5.3.0-alpha1 ( #37661 )
...
* Bump version to 5.3.0-alpha1
* Dist
* Add docs versions updates
* Update note in homepage hero
Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-12-24 18:37:22 +02:00