1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #34621 -- Made admin site header render in <div> tag.

This was problematic for screen reader users because they use headings
to navigate. Having two <h1> is confusing, and the one in the header
wasn’t particularly helpful since it’s the same on all pages.
This commit is contained in:
Howard Cox
2023-06-02 11:54:07 +01:00
committed by Mariusz Felisiak
parent 89c27d8672
commit cd413bd78a
8 changed files with 19 additions and 10 deletions

View File

@@ -419,6 +419,11 @@ Miscellaneous
* :class:`~django.db.models.functions.Now` database function now uses
``LOCALTIMESTAMP`` instead of ``CURRENT_TIMESTAMP`` on Oracle.
* :attr:`.AdminSite.site_header` is now rendered in a ``<div>`` tag instead of
``<h1>``. Screen reader users rely on heading elements for navigation within
a page. Having two ``<h1>`` elements was confusing and the site header wasn't
helpful as it is repeated on all pages.
.. _deprecated-features-5.0:
Features deprecated in 5.0