Opened 15 months ago

Last modified 24 hours ago

#35875 new Cleanup/optimization

Dark mode support for django/views/templates/*.html

Reported by: Emme Bravo Owned by:
Component: Core (Other) Version: dev
Severity: Normal Keywords: accessibility
Cc: Thibaud Colas, Adam Johnson Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

Django’s directory_index view uses simple HTML to display a list of files (see demo/directory_index). It would be helpful if this was displayed in a dark theme when the user’s operating system is configured to use one, just like the Django admin.

This can be achieved with the color-scheme meta tag, which will tell the browser the page is ready to adapt based on the user’s operating system preferences:

<meta name="color-scheme" content="light dark" />

Change History (11)

comment:1 by Sarah Boyce, 15 months ago

Cc: Thibaud Colas added
Summary: Dark mode support for directory_index viewDark mode support for django/views/templates/*.html
Triage Stage: UnreviewedAccepted

It sounds like there's a request to support dark mode in places other than the admin, including the congrats page
Accepting on the grounds that I believe this has accessibility benefits and discussed with Thibaud, cc-ing to confirm.

I'd like to increase the scope of this ticket to all templates in django/views/templates. Each one can be worked on separately with Refs #35875 -- but don't think we need to keep creating new tickets for each one.

comment:2 by Tim Graham, 15 months ago

Component: Generic viewsCore (Other)

comment:3 by Emme Bravo, 15 months ago

Owner: set to Emme Bravo
Status: newassigned

comment:4 by Bhupesh panwar, 10 months ago

Owner: changed from Emme Bravo to Bhupesh panwar

comment:5 by Bhupesh panwar, 10 months ago

Owner: Bhupesh panwar removed
Status: assignednew

comment:6 by Bhupesh panwar, 10 months ago

Owner: set to Bhupesh panwar
Status: newassigned

comment:7 by Adam Johnson, 3 months ago

Cc: Adam Johnson added

comment:8 by Jacob Walls, 27 hours ago

Has patch: set

comment:9 by Jacob Walls, 25 hours ago

Triage Stage: AcceptedReady for checkin

comment:10 by Jacob Walls <jacobtylerwalls@…>, 25 hours ago

In 8a0315fa:

Refs #35875 -- Added dark mode support in additional views.

Thanks Thibaud Colas for the review.

comment:11 by Jacob Walls, 24 hours ago

Has patch: unset
Owner: Bhupesh panwar removed
Status: assignednew
Triage Stage: Ready for checkinAccepted

Still need to implement dark theme on the error views (404, 500) to call this done.

Note: See TracTickets for help on using tickets.
Back to Top