From b47bdb4cd9149ee2a39bf1cc9996a36a940bd7d9 Mon Sep 17 00:00:00 2001 From: Eli Date: Tue, 30 Jan 2024 11:02:58 -0300 Subject: [PATCH] Fixed #35145 -- Corrected color scheme of vanilla HTML widgets in admin. --- django/contrib/admin/static/admin/css/base.css | 2 ++ django/contrib/admin/static/admin/css/dark_mode.css | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css index 3a80e3a3c9..f9f47c8592 100644 --- a/django/contrib/admin/static/admin/css/base.css +++ b/django/contrib/admin/static/admin/css/base.css @@ -84,6 +84,8 @@ html[data-theme="light"], "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + + color-scheme: light; } html, body { diff --git a/django/contrib/admin/static/admin/css/dark_mode.css b/django/contrib/admin/static/admin/css/dark_mode.css index c49b6bc26f..2123be05c4 100644 --- a/django/contrib/admin/static/admin/css/dark_mode.css +++ b/django/contrib/admin/static/admin/css/dark_mode.css @@ -29,6 +29,8 @@ --close-button-bg: #333333; --close-button-hover-bg: #666666; + + color-scheme: dark; } } @@ -63,6 +65,8 @@ html[data-theme="dark"] { --close-button-bg: #333333; --close-button-hover-bg: #666666; + + color-scheme: dark; } /* THEME SWITCH */