Accessibility updates

This commit is contained in:
Jonathan Bobel
2025-03-28 10:36:17 -04:00
parent d79ece2d01
commit 7813ce7914
4 changed files with 26 additions and 20 deletions
+8 -4
View File
@@ -27,17 +27,21 @@
</label>
{{ field(**{
'class': 'file-upload-field',
'id': field.name,
'accept': allowed_file_extensions|format_list_items('.{item}')|join(',')|e
}) }}
<label class="file-upload-button" for="{{ field.name }}">
{{ button_text }}
</label>
<button type="button"
class="usa-button file-upload-button"
data-module="upload-trigger"
data-file-input-id="{{ field.name }}">
{{ button_text }}
</button>
{% if alternate_link and alternate_link_text %}
<span class="file-upload-alternate-link">
or <a class="usa-link" href="{{ alternate_link }}">{{ alternate_link_text }}</a>
</span>
{% endif %}
<label class="file-upload-filename" for="{{ field.name }}"></label>
<span class="file-upload-filename" aria-live="polite"></span>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
{{ usaButton({ "text": "Submit", "classes": "file-upload-submit" }) }}
</form>
+1 -3
View File
@@ -21,7 +21,6 @@ Error
{% block maincolumn_content %}
<div class="">
{% call banner_wrapper(type='dangerous') %}
{% if recipients.too_many_rows %}
@@ -132,7 +131,6 @@ Error
{% endif %}
{% endcall %}
</div>
<!--hide the upload button and back to top link for one off sends-->
@@ -150,7 +148,7 @@ Error
) }}
{% endif %}
</div>
<a href="#content" class="usa-link back-to-top-link">Back to top</a>
<a href="#content" class="usa-link back-to-top-link display-block margin-top-2">Back to top</a>
</div>
{% endif %}
+1
View File
@@ -27,6 +27,7 @@
show_errors=False
)}}
</div>
<span id="upload-status-live" class="usa-sr-only" role="status" aria-live="polite" aria-atomic="true"></span>
<h2 class="font-body-lg">Your file needs to look like this example</h2>