diff --git a/src/plugins/plot/legend/PlotLegend.vue b/src/plugins/plot/legend/PlotLegend.vue index 30646b1dcb..77a64c034a 100644 --- a/src/plugins/plot/legend/PlotLegend.vue +++ b/src/plugins/plot/legend/PlotLegend.vue @@ -30,6 +30,8 @@ @@ -127,6 +129,11 @@ export default { }; }, computed: { + ariaLabelValue() { + const name = this.domainObject.name ? ` ${this.domainObject.name}` : ''; + + return `${this.isLegendExpanded ? 'Collapse' : 'Expand'}${name} Legend`; + }, showUnitsWhenExpanded() { return this.loaded && this.legend.get('showUnitsWhenExpanded') === true; },