From d34e88dfd902691f6e926bd8f67e0756747f8795 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Sat, 22 Oct 2022 23:26:11 +0300 Subject: [PATCH] fix: Set an `aria-label` on freetext pronouns field (#4633) --- ietf/ietfauth/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ietf/ietfauth/forms.py b/ietf/ietfauth/forms.py index d46ad54db..7a609c623 100644 --- a/ietf/ietfauth/forms.py +++ b/ietf/ietfauth/forms.py @@ -116,6 +116,9 @@ def get_person_form(*args, **kwargs): self.initial["ascii"] = "" self.fields['pronouns_selectable'] = forms.MultipleChoiceField(label='Pronouns', choices = [(option, option) for option in ["he/him", "she/her", "they/them"]], widget=forms.CheckboxSelectMultiple, required=False) + self.fields["pronouns_freetext"].widget.attrs.update( + {"aria-label": "Optionally provide your personal pronouns"} + ) self.unidecoded_ascii = False