Skip to content

Commit d34e88d

Browse files
authored
fix: Set an aria-label on freetext pronouns field (ietf-tools#4633)
1 parent 395f110 commit d34e88d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/ietfauth/forms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def __init__(self, *args, **kwargs):
116116
self.initial["ascii"] = ""
117117

118118
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)
119+
self.fields["pronouns_freetext"].widget.attrs.update(
120+
{"aria-label": "Optionally provide your personal pronouns"}
121+
)
119122

120123
self.unidecoded_ascii = False
121124

0 commit comments

Comments
 (0)