Add aria label for additional details form

This commit is contained in:
Erin Song 2024-12-03 14:55:25 -08:00
parent 780b53b3fc
commit 8154d25873
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View file

@ -789,7 +789,12 @@ class AnythingElseForm(BaseDeletableRegistrarForm):
anything_else = forms.CharField(
required=True,
label="Anything else?",
widget=forms.Textarea(),
widget=forms.Textarea(
attrs={
"aria-label": "Is there anything else youd like us to know about your domain request? Provide details below. \
You can enter up to 2000 characters"
}
),
validators=[
MaxLengthValidator(
2000,

View file

@ -3,7 +3,7 @@
{% if not field.use_fieldset %}for="{{ widget.attrs.id }}"{% endif %}
>
{% if legend_label %}
<h2>{{ legend_label }} </h2>
<h2 class="{{ legend_classes }}">{{ legend_label }} </h2>
{% if widget.attrs.id == 'id_additional_details-has_cisa_representative' %}
<p>.gov is managed by the Cybersecurity and Infrastructure Security Agency. CISA has <a href="https://www.cisa.gov/about/regions" target="_blank">10 regions</a> that some organizations choose to work with. Regional representatives use titles like protective security advisors, cyber security advisors, or election security advisors.</p>
{% endif %}