From 9950f4fb5679957c7c9c4c026e822a905832f2c2 Mon Sep 17 00:00:00 2001 From: T Morehouse Date: Fri, 19 Apr 2019 16:30:45 -0300 Subject: [PATCH] feat(form-checkbox, form-radio): add `aria-labelledby` prop (closes: #3139) Adds new prop that will apply an `aria-labelledby` attribute to the input. Closes #3139 --- src/mixins/form-radio-check.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mixins/form-radio-check.js b/src/mixins/form-radio-check.js index 901696093e9..de14fa87274 100644 --- a/src/mixins/form-radio-check.js +++ b/src/mixins/form-radio-check.js @@ -37,6 +37,11 @@ export default { // Placed on the input if present. type: String, default: null + }, + ariaLabelledby: { + // Placed on the input if present. + type: String, + default: null } }, data() { @@ -198,7 +203,8 @@ export default { required: this.is_Required, autocomplete: 'off', 'aria-required': this.is_Required || null, - 'aria-label': this.ariaLabel || null + 'aria-label': this.ariaLabel || null, + 'aria-labelledby': this.ariaLabelledby || null }, domProps: { value: this.value,