aria-label enhancements
parent
fb60c57af2
commit
5b72a7732f
|
@ -41,7 +41,7 @@ export default {
|
||||||
return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
|
return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
|
||||||
},
|
},
|
||||||
defaultAriaLabel() {
|
defaultAriaLabel() {
|
||||||
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs['aria-label'];
|
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
|
||||||
},
|
},
|
||||||
hasIcon() {
|
hasIcon() {
|
||||||
return this.icon || this.$slots.icon;
|
return this.icon || this.$slots.icon;
|
||||||
|
|
|
@ -77,7 +77,7 @@ export default {
|
||||||
return UniqueComponentId();
|
return UniqueComponentId();
|
||||||
},
|
},
|
||||||
buttonAriaLabel() {
|
buttonAriaLabel() {
|
||||||
return this.toggleButtonProps && this.toggleButtonProps['aria-label'] ? this.toggleButtonProps['aria-label'] : this.legend;
|
return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.legend;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
directives: {
|
directives: {
|
||||||
|
|
|
@ -81,7 +81,7 @@ export default {
|
||||||
return UniqueComponentId();
|
return UniqueComponentId();
|
||||||
},
|
},
|
||||||
buttonAriaLabel() {
|
buttonAriaLabel() {
|
||||||
return this.toggleButtonProps && this.toggleButtonProps['aria-label'] ? this.toggleButtonProps['aria-label'] : this.header;
|
return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.header;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
Loading…
Reference in New Issue