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"`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34833>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Cleanup/optimization
* component: Uncategorized => contrib.admin
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:1>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:2>
* keywords: => accessibility, screen reader, landmarks
Old description:
> Related: [https://code.djangoproject.com/ticket/34832#ticket #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"`.
New description:
Related: [https://code.djangoproject.com/ticket/34832#ticket #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 [https://dequeuniversity.com/rules/axe/4.8/landmark-one-
main?application=RuleDescription recommendation from Axe] on the
importance of having a main landmark.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:3>
* owner: nobody => Sarah Abderemane
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17260 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"91e617c743b21a0ebad01f18623a8b31f6f58500" 91e617c7]:
{{{
#!CommitTicketReference repository=""
revision="91e617c743b21a0ebad01f18623a8b31f6f58500"
Fixed #34833 -- Made admin's main content render in <main> tag.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34833#comment:7>