From 3e59647497b6d0919b340d1f87e9cacc5c4c4620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Freitag?= Date: Tue, 10 Dec 2024 11:24:57 +0100 Subject: [PATCH] Set the help_text id attribute to the field aria-describedby (#716) Otherwise, the rendered HTML does contains an `aria-describedby` that references a nonexistent element. --- CHANGELOG.md | 1 + src/django_bootstrap5/renderers.py | 3 +++ .../django_bootstrap5/field_help_text.html | 2 +- tests/test_bootstrap_field.py | 13 ++++++++++++- tests/test_bootstrap_form.py | 5 ++++- 5 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 426339ff..20c75c38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Switch to just and uv for package management (#734). - Remove `