From 8722c19cc396e49ab2da8142594d9bdbb8bd10af Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:15:25 +0100 Subject: [PATCH] A11y: Fix prometheus issues (#42671) --- .../grafana-ui/src/components/Forms/Legacy/Select/Select.tsx | 2 ++ .../datasource/prometheus/components/PromQueryEditor.tsx | 3 +++ .../datasource/prometheus/configuration/PromSettings.tsx | 1 + 3 files changed, 6 insertions(+) diff --git a/packages/grafana-ui/src/components/Forms/Legacy/Select/Select.tsx b/packages/grafana-ui/src/components/Forms/Legacy/Select/Select.tsx index 20303334b5c..55689e34d97 100644 --- a/packages/grafana-ui/src/components/Forms/Legacy/Select/Select.tsx +++ b/packages/grafana-ui/src/components/Forms/Legacy/Select/Select.tsx @@ -101,6 +101,7 @@ export class Select extends PureComponent> { onOpenMenu, allowCustomValue, formatCreateLabel, + 'aria-label': ariaLabel, } = this.props; let widthClass = ''; @@ -151,6 +152,7 @@ export class Select extends PureComponent> { onMenuOpen={onOpenMenuInternal} onMenuClose={onCloseMenuInternal} tabSelectsValue={tabSelectsValue} + aria-label={ariaLabel} {...creatableOptions} /> ); diff --git a/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx b/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx index a8fa2f0f6c3..4301778a755 100644 --- a/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx +++ b/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx @@ -161,6 +161,7 @@ export class PromQueryEditor extends PureComponent
Resolution
o.value === options.jsonData.httpMethod)}