influxdb: config: accessibility fixes (#43260) (#43328)

(cherry picked from commit d2283cf799)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-12-20 10:26:34 +01:00
committed by GitHub
co-authored by Gábor Farkas
parent 1359a44c11
commit 553ad31761
2 changed files with 6 additions and 0 deletions
@@ -112,6 +112,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
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<Props, State> {
isConfigured={(secureJsonFields && secureJsonFields.password) as boolean}
value={secureJsonData.password || ''}
label="Password"
aria-label="Password"
labelWidth={10}
inputWidth={20}
onReset={this.onResetPassword}
@@ -169,6 +169,7 @@ exports[`Render should disable basic auth password input 1`] = `
className="gf-form"
>
<SecretFormField
aria-label="Password"
inputWidth={20}
label="Password"
labelWidth={10}
@@ -435,6 +436,7 @@ exports[`Render should hide basic auth fields when switch off 1`] = `
className="gf-form"
>
<SecretFormField
aria-label="Password"
inputWidth={20}
label="Password"
labelWidth={10}
@@ -701,6 +703,7 @@ exports[`Render should hide white listed cookies input when browser access chose
className="gf-form"
>
<SecretFormField
aria-label="Password"
inputWidth={20}
label="Password"
labelWidth={10}
@@ -967,6 +970,7 @@ exports[`Render should render component 1`] = `
className="gf-form"
>
<SecretFormField
aria-label="Password"
inputWidth={20}
label="Password"
labelWidth={10}