mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Use ids instead of aria-labels (#44012)
This commit is contained in:
parent
acb791bdd6
commit
75263ed7cc
@ -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."
|
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
|
<Input
|
||||||
aria-label="Optional ID"
|
id={`${query.refId}-cloudwatch-metric-query-editor-id`}
|
||||||
onBlur={onRunQuery}
|
onBlur={onRunQuery}
|
||||||
onChange={(event: ChangeEvent<HTMLInputElement>) =>
|
onChange={(event: ChangeEvent<HTMLInputElement>) =>
|
||||||
this.onChange({ ...metricsQuery, id: event.target.value })
|
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.">
|
<EditorField label="Period" width={26} tooltip="Minimum interval between points in seconds.">
|
||||||
<Input
|
<Input
|
||||||
aria-label="Period"
|
id={`${query.refId}-cloudwatch-metric-query-editor-period`}
|
||||||
value={query.period || ''}
|
value={query.period || ''}
|
||||||
placeholder="auto"
|
placeholder="auto"
|
||||||
onBlur={onRunQuery}
|
onBlur={onRunQuery}
|
||||||
|
Loading…
Reference in New Issue
Block a user