-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: tools
-
None
-
b24
-
generic
-
generic
The dark theme added in JDK-8342705 uses duplicate CSS declarations to handle OS default settings. As it turns out, this can be avoided by using the window.matchMedia() function[1] to query the OS defaults to set the theme.
[1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
[1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
- relates to
-
JDK-8342705 Add dark mode for docs
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/49f51f94
-
Review(master)
openjdk/jdk/28085