CSR-467 Edit aria-labels and what screenreader reads

This commit is contained in:
Katie 2022-07-29 11:53:54 -04:00
parent bce215c5d0
commit 1d6a36a79a
4 changed files with 4 additions and 3 deletions

View file

@ -7,6 +7,7 @@
<div class="w-100 d-flex justify-content-center">
<fieldset class="w-100" :aria-required=isRequired :class="getFieldSetClasses" :role="isMultiSelect ? 'group' : 'radiogroup'" :aria-labelledby="formattedGroupName">
<legend class="sr-only" :data-focus-target="formattedGroupName" :id="formattedGroupName" tabindex="-1">
{{ questionText }}
{{(isMultiSelect && answers && answers.length > 1) ? 'Select one or more options below.' : 'Select an option below.' }}
</legend>
<div :class="getComponentLoopWrapperClasses" role="application">

View file

@ -20,7 +20,7 @@
<label
tabindex="-1"
:for="buttonID"
:aria-labelledby="buttonID"
:aria-label="buttonLabel"
class="d-flex flex-column justify-content-center py-3 px-4"
@mouseup="triggerButton()"
>

View file

@ -20,7 +20,7 @@
<label
tabindex="-1"
:for="buttonID"
:aria-labelledby="buttonID"
:aria-label="buttonLabel"
class="d-flex flex-column justify-content-center py-3 px-4"
@mouseup="triggerButton"
>

View file

@ -26,7 +26,7 @@
<label
tabindex="-1"
:for="buttonID"
:aria-labelledby="buttonID"
:aria-label="buttonLabel"
class="d-flex w-100 align-items-center px-2 h-100"
:class="getLabelClasses"
@mouseup="triggerButton"