1
0
mirror of https://github.com/django/django.git synced 2025-02-08 16:35:17 +00:00
David Smith 292f1ea90f Refs #32819 -- Used auto_id instead of id_for_label as unique identifier for the field.
`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>`.
2023-11-16 12:23:42 +01:00
..
2019-11-26 14:02:24 +01:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-07-21 12:54:38 +02:00
2023-04-17 06:55:32 +02:00
2023-10-09 09:55:52 +02:00
2018-07-02 10:12:20 +02:00
2018-10-01 09:34:57 +02:00
2018-12-03 15:14:58 +01:00
2018-06-28 11:07:37 -04:00
2018-08-31 10:12:51 +02:00
2018-12-03 17:29:46 +01:00
2019-07-01 07:48:45 +02:00
2022-02-02 07:17:57 +01:00
2020-01-02 07:55:53 +01:00
2020-02-03 08:52:16 +01:00
2023-04-17 06:55:32 +02:00
2020-10-01 07:22:28 +02:00
2020-12-01 06:24:16 +01:00
2021-01-04 08:31:51 +01:00
2021-09-01 07:40:01 +02:00
2021-10-05 09:07:26 +02:00
2021-11-01 10:18:49 +01:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2022-09-05 05:21:23 +02:00
2022-11-01 06:54:19 +01:00
2022-12-06 09:56:43 +01:00
2023-01-02 08:10:59 +01:00
2023-04-05 06:09:31 +02:00
2023-06-05 08:21:56 -03:00
2023-08-01 13:30:05 -03:00
2023-10-22 11:02:12 +02:00
2023-11-01 08:22:47 +01:00