#34619: Ensures select element has an accessible name
-------------------------------+------------------------------------
     Reporter:  Cheuk Ting Ho  |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  4.2
     Severity:  Normal         |               Resolution:
     Keywords:  accessibility  |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

 * stage:  Unreviewed => Accepted


Old description:

> 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:
>
> -
> https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/SelectFilter2.js#L38
> -
> https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/SelectFilter2.js#L83

New description:

 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:

 -
 
https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/SelectFilter2.js#L38
 -
 
https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/SelectFilter2.js#L83

--

Comment:

 > in `admin/auth/group/add/` is lacking the accessible name for the
 selected. We suspect is the JS widget modified the label generated.

 Are we talking about `aria-label`? Sorry, I'm not an expert in this area.

 Tentatively accepted as I believe you discussed this with Thibaud.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34619#comment:2>
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/010701887af5c1d3-437da866-ee27-4a2a-acc3-3a5a9f53a746-000000%40eu-central-1.amazonses.com.

Reply via email to