Opened 3 years ago

Closed 3 years ago

#34834 closed Cleanup/optimization (fixed)

Use `search` role for the admin changelist search form

Reported by: Thibaud Colas Owned by: Lemuel Sta Ana
Component: contrib.admin Version: 4.2
Severity: Normal Keywords: accessibility, screen reader, landmarks
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Related: #34832, #34833. Django’s ChangeListSearchForm and its ​search_form.html currently use <div id="toolbar"><form id="changelist-search" method="get"></form></div> markup for the form. It would be nice for screen reader users to use a role="search" on the form, so it’s explicitly identified as a search form when navigating the page by region.

In the future it would be even better to convert the wrapping toolbar div to use the ​search HTML element, but browser support isn’t there yet.

Change History (8)

comment:1 by faizan2700, 3 years ago

Please assign me this ticket. I understand what needs to be done.
My Introduction:
I have graduated from IIIT Pune in 2021. I am doing freelancing since college only, I have worked in ServiceNow and CleverTaps before currently I am working on my startup.

comment:2 by Mariusz Felisiak, 3 years ago

Easy pickings: set
Triage Stage: Unreviewed → Accepted

faizan2700, you can assign yourself a ticket.

comment:3 by Lemuel Sta Ana, 3 years ago

Owner: changed from nobody to Lemuel Sta Ana
Status: new → assigned

Claiming ticket.

comment:4 by Lemuel Sta Ana, 3 years ago

Has patch: set
Last edited 3 years ago by Lemuel Sta Ana (previous) (diff)

comment:5 by Mariusz Felisiak, 3 years ago

Needs tests: set

comment:6 by Lemuel Sta Ana, 3 years ago

Regression test added as per ​commit

comment:7 by Mariusz Felisiak, 3 years ago

Needs tests: unset
Triage Stage: Accepted → Ready for checkin

comment:8 by Mariusz Felisiak <felisiak.mariusz@…>, 3 years ago

Resolution: → fixed
Status: assigned → closed

In 969ecb82:

Fixed #34834 -- Added role="search" to the admin changelist search form.

Note: See TracTickets for help on using tickets.
Back to Top