From ba58b34219739aada59dd8853d4cb9cf640eae8f Mon Sep 17 00:00:00 2001 From: Shirley <4163034+fridgepoet@users.noreply.github.com> Date: Wed, 5 Jan 2022 09:46:05 +0100 Subject: [PATCH] CloudWatch: a11y: Add missing aria labels on explore metrics/logs editor (#43580) * CloudWatch: a11y: Add missing aria labels on explore metrics/logs editor --- public/app/plugins/datasource/cloudwatch/components/Alias.tsx | 2 +- .../datasource/cloudwatch/components/LogsQueryField.tsx | 2 ++ .../components/MetricStatEditor/MetricStatEditor.tsx | 2 ++ .../datasource/cloudwatch/components/MetricsQueryEditor.tsx | 2 ++ .../plugins/datasource/cloudwatch/components/QueryHeader.tsx | 3 ++- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/cloudwatch/components/Alias.tsx b/public/app/plugins/datasource/cloudwatch/components/Alias.tsx index 009fdafb4a6..3b1ead48981 100644 --- a/public/app/plugins/datasource/cloudwatch/components/Alias.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/Alias.tsx @@ -17,5 +17,5 @@ export const Alias: FunctionComponent = ({ value = '', onChange }) => { propagateOnChange(e.target.value); }; - return ; + return ; }; diff --git a/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.tsx b/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.tsx index 8c56d7fcf5f..ecfe5f2da8b 100644 --- a/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.tsx @@ -331,6 +331,7 @@ export class CloudWatchLogsQueryField extends React.PureComponent { tooltip="ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter." > ) => this.onChange({ ...metricsQuery, id: event.target.value }) @@ -156,6 +157,7 @@ export class MetricsQueryEditor extends PureComponent { = ({ query, sqlCodeEditorIsDirty, isLoading={regionIsLoading} /> - + m.value === metricQueryType)} options={metricEditorModes} onChange={({ value }) => {