Opened 17 months ago
Closed 6 months ago
#35507 closed Bug (fixed)
Use search element for admin's filter sidebar
| Reported by: | Tom Carrick | Owned by: | Antoliny | 
|---|---|---|---|
| Component: | contrib.admin | Version: | dev | 
| Severity: | Normal | Keywords: | accessibility | 
| Cc: | Tom Carrick, Paolo Melchiorre, Thibaud Colas | Triage Stage: | Ready for checkin | 
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
Using a search landmark instead of a div will improve the accessibility for screen readers.
We should ensure that it has a different aria-label than any other search landmarks or elements with the search role on the page (e.g. search bar) see: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Search_role#labeling_landmarks
I didn't check if there are any of these other than the search bar.
Change History (11)
comment:1 by , 17 months ago
| Owner: | changed from to | 
|---|
comment:2 by , 17 months ago
comment:3 by , 17 months ago
| Cc: | added | 
|---|---|
| Has patch: | set | 
| Triage Stage: | Unreviewed → Accepted | 
comment:4 by , 17 months ago
For further information, see description of the search element in this link, specifically:
The <search> element semantically identifies the purpose of the element's contents as having search or filtering capabilities.
comment:5 by , 17 months ago
| Cc: | added | 
|---|---|
| Patch needs improvement: | set | 
This appears to revert #34835 which was introduced in 5.1, makes me think we should backport this to 5.1 before the beta freeze and mark this as a release blocker if we are instead saying this is in fact more accurate. We would also need to update the release note added in #34835.
Otherwise, we can close this ticket as wontfix.
comment:6 by , 17 months ago
So... I feel uncomfortable with this phrasing a little. I think nav was an improvement, and this is a further improvement. It could be backported, I don't have a problem with that either, but I wouldn't go so far as to say that nav was wrong, just that this is "more right".
comment:7 by , 15 months ago
| Owner: | changed from to | 
|---|
comment:8 by , 7 months ago
| Owner: | changed from to | 
|---|
comment:10 by , 6 months ago
| Triage Stage: | Accepted → Ready for checkin | 
|---|
I've made the pull request: https://github.com/django/django/pull/18256