CSR-96: fixed aria labels
This commit is contained in:
parent
18eccf277e
commit
aec70a397f
3 changed files with 6 additions and 7 deletions
|
|
@ -1,9 +1,8 @@
|
|||
<template>
|
||||
<div class="dropdown-question">
|
||||
<label :for="inputId" class="form-label">{{labelText}}</label>
|
||||
<label :for="inputId" :aria-label="ariaLabelText" class="form-label">{{labelText}}</label>
|
||||
<select v-model="selectedOption"
|
||||
class="form-select"
|
||||
aria-label="Default select example"
|
||||
:id="inputId"
|
||||
:name="inputId"
|
||||
:aria-disabled="isDisabled"
|
||||
|
|
@ -33,7 +32,8 @@ export default {
|
|||
required: true
|
||||
},
|
||||
isDisabled: Boolean,
|
||||
isRequired: Boolean,
|
||||
isRequired: Boolean,
|
||||
ariaLabelText: String,
|
||||
},
|
||||
data() {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="textbox-question" :class="hasError ? 'has-error' : ''">
|
||||
<label :for="inputId" class="form-label">{{labelText}}</label>
|
||||
<label :for="inputId" :aria-label="ariaLabelText" class="form-label">{{labelText}}</label>
|
||||
<input v-model="value" v-maska="mask"
|
||||
:type="type"
|
||||
class="form-control"
|
||||
|
|
@ -10,8 +10,7 @@
|
|||
:placeholder="placeholderText"
|
||||
:aria-disabled="isDisabled"
|
||||
:disabled="isDisabled"
|
||||
:aria-required="isRequired"
|
||||
:aria-label="ariaLabelText"
|
||||
:aria-required="isRequired"
|
||||
autocomplete="off"
|
||||
:class="[hasIcon ? 'has-icon' : '', iconRight ? 'icon-right' : '']" />
|
||||
<p class="mt-2 form-test-error" v-if="!suppressError">
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
<div class="row my-4">
|
||||
<div class="col-6">
|
||||
<dropdownQuestion v-model="state" ref="state" inputId="8fdf9dc2e13e430eb57529499dceb3eb" :options="stateOptions" labelText="S⁠tate" />
|
||||
<dropdownQuestion v-model="state" ref="state" inputId="8fdf9dc2e13e430eb57529499dceb3eb" :options="stateOptions" labelText="S⁠tate" ariaLabelText="State" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<textboxQuestion v-model="zip" ref="zip" inputId="01a9a1c2de0b4c9da8e023c9ae3be498" labelText="Z⁠IP code" ariaLabelText="ZIP code" mask="#####" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue