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 Antoliny)

The column sort functionality provided on the admin ChangeList page has much room for accessibility improvement.

  1. 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.

  1. 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).

  1. 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.

  1. 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)

not_sorted_column_access.png (82.2 KB ) - added by Antoliny 3 months ago.
sort_button_screen_reader.png (78.9 KB ) - added by Antoliny 3 months ago.

Download all attachments as: .zip

Change History (14)

by Antoliny, 3 months ago

by Antoliny, 3 months ago

comment:1 by Antoliny, 3 months ago

Owner: set to Antoliny
Status: newassigned

comment:2 by Antoliny, 3 months ago

Description: modified (diff)

comment:3 by Sarah Boyce, 3 months ago

Cc: Eliana Rosselli Thibaud Colas Sarah Abderemane Tom Carrick added
Triage Stage: UnreviewedAccepted

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

comment:4 by Antoliny, 3 months ago

Has patch: set

comment:5 by Antoliny, 3 months ago

UI/UX: set

comment:6 by Sarah Boyce, 3 months ago

Needs tests: set
Patch needs improvement: set

comment:7 by Antoliny, 2 months ago

Needs tests: unset
Patch needs improvement: unset

comment:8 by Sarah Boyce, 2 months ago

Patch needs improvement: set

comment:9 by Antoliny, 2 months ago

Patch needs improvement: unset

comment:10 by Antoliny, 6 weeks ago

Patch needs improvement: set

comment:11 by Antoliny, 6 weeks ago

Patch needs improvement: unset

comment:12 by Sarah Boyce, 4 weeks ago

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top