From e7669226df8514e81afa546274cfd08c64a518aa Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 9 Dec 2021 10:19:53 +0000 Subject: [PATCH] A11y: Fix prometheus issues (#42671) (#42738) (cherry picked from commit 8722c19cc396e49ab2da8142594d9bdbb8bd10af) Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> --- .../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 35bc7f3be08..aca931e2bda 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)}