From 2f5bcc012d959eaf1b00eed73848601f04ff89fe Mon Sep 17 00:00:00 2001 From: Ilya Matiach Date: Tue, 5 Dec 2023 15:25:04 -0500 Subject: [PATCH] fix aria label for screen reader on scatter plot color axis picker --- .../src/lib/ChartView/DataAnalysisView/SidePanel.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/dataset-explorer/src/lib/ChartView/DataAnalysisView/SidePanel.tsx b/libs/dataset-explorer/src/lib/ChartView/DataAnalysisView/SidePanel.tsx index 145ae3ce20..97f942fc5c 100644 --- a/libs/dataset-explorer/src/lib/ChartView/DataAnalysisView/SidePanel.tsx +++ b/libs/dataset-explorer/src/lib/ChartView/DataAnalysisView/SidePanel.tsx @@ -127,6 +127,15 @@ export class SidePanel extends React.Component< this.props.chartProps.colorAxis.property ].label } + ariaLabel={ + this.props.chartProps.colorAxis + ? `${localization.Interpret.DatasetExplorer.colorValue} - ${ + this.props.jointDataset.metaDict[ + this.props.chartProps.colorAxis.property + ].label + }` + : localization.Interpret.DatasetExplorer.colorValue + } />
{colorSeries?.length && (