Skip to content

Commit df64410

Browse files
authored
BB2-2497 Add missing aria labels and alt text for accessibility (#1121)
* BB2-2497 Add missing aria labels and alt text for accessibility * BB2-2497 Add periods for more clarity for screen readers. * BB2-2497 Hide hint text for screen readers.
1 parent 1440c8f commit df64410

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

templates/design_system/new_authorize_v2.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<div class="ds-u-text-align--center">
1515
<svg
1616
role="img"
17+
aria-label="medicare.gov"
1718
aria-labelledby="medicare-gov-1"
1819
width="273"
1920
height="39"
@@ -80,14 +81,15 @@ <h1 class="ds-text-heading--2xl ds-u-margin-bottom--3">Connect your Medicare cla
8081
type="checkbox"
8182
value="True"
8283
checked=""
84+
aria-describedby="allow_access block_access"
8385
/>
84-
<label class="ds-c-label ds-u-text-align--left" for="checkbox_checkbox_choices_2">
86+
<label class="ds-c-label ds-u-text-align--left" for="radio_1">
8587

8688
<span class="ds-text-body--md">Personal Information<br>Your name, address, date of birth, race, and gender</span>
8789
</label>
8890
</div>
89-
<span class="ds-c-field__hint" id="allow_access">Uncheck to block access to personal information</span>
90-
<span class="ds-c-field__hint" id="block_access" style="display:none;">Check to allow access to personal information</span>
91+
<span class="ds-c-field__hint" id="allow_access" role="presentation" aria-hidden="true">Uncheck to block access to personal information.</span>
92+
<span class="ds-c-field__hint" id="block_access" role="presentation" aria-hidden="true" style="display:none;">Check to allow access to personal information.</span>
9193
</div>
9294
</fieldset>
9395
</p>

templates/include/auth_head.html

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<!-- FavIcons generated by http://realfavicongenerator.net -->
1212
<link href="{% static 'img/favicon/favicon.ico' %}" rel="shortcut icon" type="image/x-icon" />
13+
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
1314
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/favicon/apple-touch-icon.png' %}">
1415
<link rel="icon" type="image/png" href="{% static 'img/favicon/favicon-32x32.png' %}" sizes="32x32">
1516
<link rel="icon" type="image/png" href="{% static 'img/favicon/favicon-16x16.png' %}" sizes="16x16">

0 commit comments

Comments
 (0)