- Its toggle button doesn’t set `aria-expanded` to indicate its state.
This is important so people can tell whether the current state is "opened"
or "closed".
- The sidebar is wrapped in a `<nav>` landmark (good!) but that landmark
should ideally have a label set with `aria-label="{% translate 'Sidebar'
%}"` so users can more easily decide whether this is the part of the UI
they want to go to.
- The sidebar shouldn’t be navigable when closed (to replicate the
experience of sighted users). This is because we’re preventing navigation
by setting `tabindex="-1"` on the sidebar interactive elements. Instead,
we should set the whole region to `display: none` or `visibility: hidden`
when closed.
--
Ticket URL: <https://code.djangoproject.com/ticket/34042>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34042#comment:1>
* owner: nobody => Gloib
* status: new => assigned
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16093 patch created here]
--
Ticket URL: <https://code.djangoproject.com/ticket/34042#comment:2>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34042#comment:3>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34042#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c4aac2ac1e469f0dc27b4dce230c7b29add617ba" c4aac2ac]:
{{{
#!CommitTicketReference repository=""
revision="c4aac2ac1e469f0dc27b4dce230c7b29add617ba"
Fixed #34042 -- Improved accessibility of admin's navigation sidebar.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34042#comment:5>