#33235: Remove "for = ..." from MultiWidget's <label>.
-------------------------------------+-------------------------------------
     Reporter:  Maxim Danilov        |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Forms                |                  Version:  3.2
     Severity:  Normal               |               Resolution:
     Keywords:  accessibility,       |             Triage Stage:  Accepted
  forms, wcag                        |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Thibaud Colas, David Smith, Tom Carrick (added)
 * keywords:   => accessibility, forms, wcag
 * stage:  Unreviewed => Accepted


Comment:

 I agree that we should remove `for` from MultiWidget's `<label>` but not
 because ''"It has not sense"'' but to improve accessibility when using a
 screen reader, see also #32338. It should be enough to return an empty
 string:
 {{{#!python
 def id_for_label(self, id_):
     return ''
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33235#comment:1>
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/067.dd464e4c0cc608adac765619ea357bd7%40djangoproject.com.

Reply via email to