From eec7e9ba894a7815d289ba7446eeead488fe0e33 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 12 Nov 2023 17:24:16 +0000 Subject: Refs #32819 -- Established relationship between form fieldsets and their help text. This adds aria-describedby for widgets rendered in a fieldset such as radios. aria-describedby for these widgets is added to the
element rather than each . --- docs/ref/forms/fields.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 9dff2d4007..ed685cfff6 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -283,9 +283,10 @@ fields. We've specified ``auto_id=False`` to simplify the output:
Sender:
A valid email address, please.
Cc myself:
-When a field has help text and the widget is not rendered in a ``
``, -``aria-describedby`` is added to the ```` to associate it to the -help text: +When a field has help text it is associated with its input using the +``aria-describedby`` HTML attribute. If the widget is rendered in a +``
`` then ``aria-describedby`` is added to this element, otherwise it +is added to the widget's ````: .. code-block:: pycon @@ -325,6 +326,10 @@ inside ``aria-describedby``: ``aria-describedby`` was added to associate ``help_text`` with its input. +.. versionchanged:: 5.1 + + ``aria-describedby`` support was added for ``
``. + ``error_messages`` ------------------ -- cgit v1.3