Closed worthwhile-gwarner closed 2 years ago
Hello @worthwhile-gwarner !
Thanks a lot, for creating the issue! And welcome, to the django CMS project :)
I will move your issue to the djangocms-admin-style repository. Because this Issue is related to the djangocms-admin-style package.
Ah, thank you @crydotsnake! š Apologies!
No problem ! š
What is your version of the djangocms-admin-style package? Because I cannot reproduce the bug.
Current version in my piplock file is 2.0.2.
Sorry this appears to be a duplicate then of this outstanding issue: https://github.com/django-cms/djangocms-admin-style/issues/438
Okay, the same version that I use :)
Thanks anywhere for reporting it!
I think the dark mode came in with django 3.2.
The app hasn't been updated since some work for django 3.1 so it needs work to support the dark theme.
This is essentially the same as #438
This will be solved by #443
@worthwhile-gwarner Dark mode works in version 3.1.
Description
Tested on Win 11 and macOS 11.6 in Firefox 95.0b4 and Edge 95.0.1020.44. Logging into Django admin and accessing a Pages section reveals the #nav-sidebar element and its child
tr
tags to be set with a background-color ofvar(--body-bg)
, which inherits frombase.css
in Django admin (Django 3.2.6) where@meda (prefers-color-scheme: dark)
sets the body bg to off-black. However no other surrounding admin bg styles are set similarly, and foreground is not set to a corresponding light color, leaving the text unreadable unless switching to a system light mode theme.Steps to reproduce
Expected behaviour
Expect either the admin interface overall will favor dark theme and set corresponding foreground colors for sufficient contrast, or preserve a light background for now to maintain legibility.
Actual behaviour
Nav sidebar links in Django CMS Admin when using system dark mode are illegible.
Screenshots
Additional information (CMS/Python/Django versions)
Do you want to help fix this issue?