Opened 4 months ago
Last modified 4 weeks ago
#36367 assigned Cleanup/optimization
Improving the accessibility of the date_hierarchy layout in the admin.
Reported by: | Antoliny | Owned by: | Chaitanya |
---|---|---|---|
Component: | contrib.admin | Version: | 5.1 |
Severity: | Normal | Keywords: | accessibility, screen reader, date_hierarchy |
Cc: | Eliana Rosselli, Thibaud Colas, Sarah Abderemane, Tom Carrick, Antoliny | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
When navigating to the date_hierarchy area in the admin page using a screen reader, no specific description is provided for that section. Currently, the only information announced is that it is a "navigation" area.
As a result, screen reader users may find it difficult to understand the purpose of the links contained within this area when they access it. The lack of context makes it unclear what role these links play.
Attachments (1)
Change History (13)
by , 4 months ago
Attachment: | date_hierarchy_screenreader_example.png added |
---|
comment:1 by , 4 months ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 4 months ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 3 months ago
Cc: | added |
---|---|
Owner: | removed |
Status: | assigned → new |
follow-up: 5 comment:4 by , 5 weeks ago
Owner: | set to |
---|---|
Status: | new → assigned |
follow-up: 6 comment:5 by , 5 weeks ago
Replying to Chaitanya:
in admin/date_hierarchy.html
aria is one way of fixing it like below
<nav class="toplinks" aria-label="Date filter">now the screen reader says "Date filter navigation" instead of "navigation".
or Else we can have a hidden <h> tag which also does the same thing but will be announced while going through headings of the page like below. (definitely not the best way)
<h3 class="visually-hidden">Date filter navigation</h3>any other ways to fix??
Great! I think the changes above are necessary.
In addition, I believe the biggest issue here is how to convey the sorted order in the date_hierarchy
.
Hmm... I've been thinking a lot about this recently as well, and I feel like we might need to slightly restructure this part.
follow-up: 7 comment:6 by , 5 weeks ago
Do we need to really convey the sorted order?? if yes then we can have the same aria label to say something like "sorted date filter navigation".
I don't think we need to announce the sorted order.
comment:7 by , 5 weeks ago
Replying to Chaitanya:
Do we need to really convey the sorted order?? if yes then we can have the same aria label to say something like "sorted date filter navigation".
I don't think we need to announce the sorted order.
Yes, on second thought, since the date hierarchy already conveys its basic meaning, there's no need to provide additional information.
I think just adding a label should be enough. --> nav, aria-labelledby
comment:9 by , 5 weeks ago
Patch needs improvement: | set |
---|
comment:10 by , 4 weeks ago
Has patch: | unset |
---|
comment:11 by , 4 weeks ago
Has patch: | set |
---|---|
Patch needs improvement: | unset |
comment:12 by , 4 weeks ago
Needs tests: | set |
---|---|
Patch needs improvement: | set |
in admin/date_hierarchy.html
aria is one way of fixing it like below
now the screen reader says "Date filter navigation" instead of "navigation".
or Else we can have a hidden <h> tag which also does the same thing but will be announced while going through headings of the page like below. (definitely not the best way)
any other ways to fix??