Use ids instead of aria-labels (#44012)

This commit is contained in:
Shirley 2022-01-18 14:31:51 +01:00 committed by GitHub
parent acb791bdd6
commit 75263ed7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ export class MetricsQueryEditor extends PureComponent<Props, State> {
tooltip="ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter."
>
<Input
aria-label="Optional ID"
id={`${query.refId}-cloudwatch-metric-query-editor-id`}
onBlur={onRunQuery}
onChange={(event: ChangeEvent<HTMLInputElement>) =>
this.onChange({ ...metricsQuery, id: event.target.value })
@ -157,7 +157,7 @@ export class MetricsQueryEditor extends PureComponent<Props, State> {
<EditorField label="Period" width={26} tooltip="Minimum interval between points in seconds.">
<Input
aria-label="Period"
id={`${query.refId}-cloudwatch-metric-query-editor-period`}
value={query.period || ''}
placeholder="auto"
onBlur={onRunQuery}