#34834: Use `search` role for the admin changelist search form
-------------------------------------+-------------------------------------
               Reporter:  Thibaud    |          Owner:  nobody
  Colas                              |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  4.2
  contrib.admin                      |       Keywords:  accessibility,
               Severity:  Normal     |  screen reader, landmarks
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Related: [https://code.djangoproject.com/ticket/34832 #34832],
 [https://code.djangoproject.com/ticket/34833 #34833]. Django’s
 ChangeListSearchForm and its
 
[https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/search_form.html
 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 [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Element/search search] HTML element, but browser support
 isn’t there yet.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34834>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018a8d3a95c6-d1243546-ef2a-4a71-9259-b8e307b1116a-000000%40eu-central-1.amazonses.com.

Reply via email to