Use a `main` landmark in the admin interface
Related: #34832. Currently the Django admin’s main content area is coded as <div class="main shifted" id="main"></div>
. For screen reader users, it would be helpful to switch to a <main>
tag or add role="main"
. They would be able to navigate straight to this area when going through the page by landmark.
Usage of the correct HTML main tag is ideal, but might prove problematic if CSS was written with overly specific HTML elements. We can get the same benefits for screen reader users with role="main"
.
---
See recommendation from Axe on the importance of having a main landmark.
Change History
(7)
Component: |
Uncategorized → contrib.admin
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Description: |
modified (diff)
|
Keywords: |
accessibility screen reader landmarks added
|
Owner: |
changed from nobody to Sarah Abderemane
|
Status: |
new → assigned
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR