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 , 3 weeks ago
Cc: | added |
---|---|
Summary: | Dark mode support for directory_index view → Dark mode support for django/views/templates/*.html |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 3 weeks ago
Component: | Generic views → Core (Other) |
---|
comment:3 by , 3 weeks ago
Owner: | set to |
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
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 withRefs #35875 --
but don't think we need to keep creating new tickets for each one.