Skip to content

Commit f82f566

Browse files
tmorehousejacobmllr95
authored andcommitted
feat(form-checkbox, form-radio): add aria-labelledby prop (closes: #3139) (#3140)
Adds new prop that will apply an `aria-labelledby` attribute to the input. Closes #3139
1 parent 239da77 commit f82f566

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/mixins/form-radio-check.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export default {
3737
// Placed on the input if present.
3838
type: String,
3939
default: null
40+
},
41+
ariaLabelledby: {
42+
// Placed on the input if present.
43+
type: String,
44+
default: null
4045
}
4146
},
4247
data() {
@@ -198,7 +203,8 @@ export default {
198203
required: this.is_Required,
199204
autocomplete: 'off',
200205
'aria-required': this.is_Required || null,
201-
'aria-label': this.ariaLabel || null
206+
'aria-label': this.ariaLabel || null,
207+
'aria-labelledby': this.ariaLabelledby || null
202208
},
203209
domProps: {
204210
value: this.value,

0 commit comments

Comments
 (0)