django-cms / djangocms-admin-style

django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
http://www.django-cms.org/
Other
418 stars 118 forks source link

djangocms-admin-style #nav-sidebar styles unreadable in dark mode #439

Closed worthwhile-gwarner closed 2 years ago

worthwhile-gwarner commented 2 years ago

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 of var(--body-bg), which inherits from base.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

body-bg-sidebar-issue

Additional information (CMS/Python/Django versions)

Do you want to help fix this issue?

crydotsnake commented 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.

worthwhile-gwarner commented 2 years ago

Ah, thank you @crydotsnake! šŸ™‚ Apologies!

crydotsnake commented 2 years ago

No problem ! šŸ™‚

What is your version of the djangocms-admin-style package? Because I cannot reproduce the bug.

worthwhile-gwarner commented 2 years ago

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

crydotsnake commented 2 years ago

Okay, the same version that I use :)

Thanks anywhere for reporting it!

marksweb commented 2 years ago

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

fsbraun commented 2 years ago

This will be solved by #443

fsbraun commented 2 years ago

@worthwhile-gwarner Dark mode works in version 3.1.