mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
committed by
Mariusz Felisiak
parent
89c27d8672
commit
cd413bd78a
@@ -2848,9 +2848,13 @@ Templates can override or extend base admin templates as described in
|
||||
|
||||
.. attribute:: AdminSite.site_header
|
||||
|
||||
The text to put at the top of each admin page, as an ``<h1>`` (a string).
|
||||
The text to put at the top of each admin page, as a ``<div>`` (a string).
|
||||
By default, this is "Django administration".
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
In older versions, ``site_header`` was using an ``<h1>`` tag.
|
||||
|
||||
.. attribute:: AdminSite.site_title
|
||||
|
||||
The text to put at the end of each admin page's ``<title>`` (a string). By
|
||||
|
||||
Reference in New Issue
Block a user