Opened 3 weeks ago

Last modified 3 weeks ago

#35875 assigned Cleanup/optimization

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

Reported by: Emme Bravo Owned by: Emme Bravo
Component: Core (Other) Version: dev
Severity: Normal Keywords: accessibility
Cc: Thibaud Colas 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 (3)

comment:1 by Sarah Boyce, 3 weeks 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, 3 weeks ago

Component: Generic viewsCore (Other)

comment:3 by Emme Bravo, 3 weeks ago

Owner: set to Emme Bravo
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top