Add screenreader text to no other contacts form

This commit is contained in:
Erin Song 2024-11-21 14:57:48 -08:00
parent d6789ba2ca
commit f918720383
No known key found for this signature in database

View file

@ -733,7 +733,14 @@ class NoOtherContactsForm(BaseDeletableRegistrarForm):
required=True,
# label has to end in a space to get the label_suffix to show
label=("No other employees rationale"),
widget=forms.Textarea(),
widget=forms.Textarea(
attrs={
"aria-label": "You dont need to provide names of other employees now, \
but it may slow down our assessment of your eligibility. Describe \
why there are no other employees who can help verify your request. \
You can enter up to 1000 characters."
}
),
validators=[
MaxLengthValidator(
1000,