influxdb: config: accessibility fixes (#43260)

This commit is contained in:
Gábor Farkas 2021-12-20 10:11:00 +01:00 committed by GitHub
parent c3ca2d214d
commit d2283cf799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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}

View File

@ -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}