Opened 3 months ago
Last modified 4 weeks ago
#36460 assigned Cleanup/optimization
Improve accessibility of column sort buttons on admin changelist page
Reported by: | Antoliny | Owned by: | Antoliny |
---|---|---|---|
Component: | contrib.admin | Version: | 5.1 |
Severity: | Normal | Keywords: | accessibility, column sort, changelist |
Cc: | Antoliny, Eliana Rosselli, Thibaud Colas, Sarah Abderemane, Tom Carrick | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | yes |
Description (last modified by )
The column sort functionality provided on the admin ChangeList page has much room for accessibility improvement.
- Insufficient description when accessing a button that can be sorted but is not currently active for sorting.
Currently, when accessing a button that can be sorted but sorting is not yet active, no description is provided. It should inform users that the field is sortable when they access the button.
- The issue of the sort button being accessed before the field.
When accessing a column with sorting applied, the sort button is currently focused before the column itself.
This is likely because screen readers tend to focus on interactive elements first.
I believe the element that is positioned above the sort button should be accessed first (and it may also need a description).
- Cannot access the button to remove sorting.
Screen reader users cannot access the button to remove sorting in the column sort feature (an element that appears on mouse hover). Naturally, the button to remove sorting should also be accessible.
- Provide more detailed descriptions for the sort buttons.
When the sort button is accessed, the title attribute is read, but the current description provided by the title is not sufficient for screen reader users to understand the sort direction of the button. (Visual users can understand it, but screen reader users cannot.)
A more detailed description should be provided for screen reader users on the sort button.
Attachments (2)
Change History (14)
by , 3 months ago
Attachment: | not_sorted_column_access.png added |
---|
by , 3 months ago
Attachment: | sort_button_screen_reader.png added |
---|
comment:1 by , 3 months ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 3 months ago
Description: | modified (diff) |
---|
comment:3 by , 3 months ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:5 by , 3 months ago
UI/UX: | set |
---|
comment:6 by , 3 months ago
Needs tests: | set |
---|---|
Patch needs improvement: | set |
comment:7 by , 2 months ago
Needs tests: | unset |
---|---|
Patch needs improvement: | unset |
comment:8 by , 2 months ago
Patch needs improvement: | set |
---|
comment:9 by , 2 months ago
Patch needs improvement: | unset |
---|
comment:10 by , 6 weeks ago
Patch needs improvement: | set |
---|
comment:11 by , 6 weeks ago
Patch needs improvement: | unset |
---|
comment:12 by , 4 weeks ago
Patch needs improvement: | set |
---|
Note that I think it's quite common to have a deactivated sort icon (arrow up and down, a bit muted in color) to indicate that the column is sort-able rather than having the header be a link
In which case there would always be an icon for sorting