From 553ad3176169f915c0e383137ea784e20c2bf4a8 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 20 Dec 2021 10:26:34 +0100 Subject: [PATCH] influxdb: config: accessibility fixes (#43260) (#43328) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit d2283cf7993b3233b3e5dabe295533f7c39cecfa) Co-authored-by: Gábor Farkas --- .../plugins/datasource/influxdb/components/ConfigEditor.tsx | 2 ++ .../components/__snapshots__/ConfigEditor.test.tsx.snap | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx b/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx index c4513b61a8c..e742899e8ba 100644 --- a/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx +++ b/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx @@ -112,6 +112,7 @@ export class ConfigEditor extends PureComponent { isConfigured={(secureJsonFields && secureJsonFields.token) as boolean} value={secureJsonData.token || ''} label="Token" + aria-label="Token" labelWidth={10} inputWidth={20} onReset={this.onResetToken} @@ -212,6 +213,7 @@ export class ConfigEditor extends PureComponent { isConfigured={(secureJsonFields && secureJsonFields.password) as boolean} value={secureJsonData.password || ''} label="Password" + aria-label="Password" labelWidth={10} inputWidth={20} onReset={this.onResetPassword} diff --git a/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap b/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap index 64668b0c6b9..1a95f9d7ccc 100644 --- a/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap +++ b/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap @@ -169,6 +169,7 @@ exports[`Render should disable basic auth password input 1`] = ` className="gf-form" >