Add aria label to purpose form

This commit is contained in:
Erin Song 2024-11-21 11:05:51 -08:00
parent 5b7a6678c6
commit 014c387910
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View file

@ -524,7 +524,9 @@ class DotGovDomainForm(RegistrarForm):
class PurposeForm(RegistrarForm):
purpose = forms.CharField(
label="Purpose",
widget=forms.Textarea(),
widget=forms.Textarea(attrs={
'aria-label': 'What is the purpose of your requested domain? Describe how youll use your .gov domain. Will it be used for a website, email, or something else? You can enter up to 2000 characters.'
}),
validators=[
MaxLengthValidator(
2000,