Opened 18 months ago
Last modified 2 weeks ago
#34619 assigned Bug
Ensures select element has an accessible name — at Version 1
Reported by: | Cheuk Ting Ho | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 4.2 |
Severity: | Normal | Keywords: | accessibility |
Cc: | Calvin Vu | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The following snippet:
`
<select name="permissions_old" id="id_permissions_from" multiple="" class="filtered" data-field-name="permissions" data-is-stacked="0">
`
in admin/auth/group/add/
is lacking the accessible name for the selected. We suspect is the JS widget modified the label generated.
The problematic select elements:
- https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/SelectFilter2.js#L16
- https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/SelectFilter2.js#L113
And where their labels need to be created:
Note:
See TracTickets
for help on using tickets.