mirror of
https://github.com/django/django.git
synced 2025-01-12 19:37:06 +00:00
7f0275d8cb
`id_for_label` is blank for widgets with multiple inputs such as radios
and multiple checkboxes. Therefore , `help_text` for fields using these
widgets cannot currently be associated using `aria-describedby`.
`id_for_label` is being used as a guard to avoid incorrectly adding
`aria-describedby` to those widgets.
This change uses `auto_id` as the unique identified for the fields
`help_text`. A guard is added to avoid incorrectly adding
`aria-describedby` to inputs by checking the widget's `use_fieldset`
attribute. Fields rendered in a `<fieldset>` should have
`aria-describedby` added to the `<fieldset>` and not every `<input>`.
Backport of
|
||
---|---|---|
.. | ||
auth | ||
class-based-views | ||
db | ||
forms | ||
http | ||
i18n | ||
testing | ||
async.txt | ||
cache.txt | ||
checks.txt | ||
conditional-view-processing.txt | ||
email.txt | ||
external-packages.txt | ||
files.txt | ||
index.txt | ||
install.txt | ||
logging.txt | ||
migrations.txt | ||
pagination.txt | ||
performance.txt | ||
security.txt | ||
serialization.txt | ||
settings.txt | ||
signals.txt | ||
signing.txt | ||
templates.txt |