From 4b4d876d42f22d50a5f09a1527cd1c97d6c7dd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dieter=20Werthm=C3=BCller?= Date: Mon, 1 Jul 2024 15:16:37 +0200 Subject: [PATCH 1/2] Fix dark-theme in html tag --- xarray/static/css/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/xarray/static/css/style.css b/xarray/static/css/style.css index e0a51312b10..dbe61e311c1 100644 --- a/xarray/static/css/style.css +++ b/xarray/static/css/style.css @@ -14,6 +14,7 @@ } html[theme=dark], +html[data-theme=dark], body[data-theme=dark], body.vscode-dark { --xr-font-color0: rgba(255, 255, 255, 1); From 0d1b5755fbb847cd547d136bb3d0353c10adb1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dieter=20Werthm=C3=BCller?= Date: Mon, 1 Jul 2024 15:26:51 +0200 Subject: [PATCH 2/2] Add to release notes --- doc/whats-new.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ac849c7ec19..685cdf28194 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,6 +45,8 @@ Bug fixes By `Justus Magin `_. - Fiy static typing of tolerance arguments by allowing `str` type (:issue:`8892`, :pull:`9194`). By `Michael Niklas `_. +- Dark themes are now properly detected for ``html[data-theme=dark]``-tags (:pull:`9200`). + By `Dieter Werthmüller `_. Documentation ~~~~~~~~~~~~~