A11y: Add missing aria labels in Loki QueryEditor (#42664) (#42737)

* Loki: Add missing aria-label

* Update text

* Update text

(cherry picked from commit 698f452e0d)

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-12-09 11:11:28 +01:00
committed by GitHub
co-authored by Ivana Huckova
parent 8f6dd8079f
commit 4806a7ac1e
@@ -149,7 +149,13 @@ export function LokiOptionFields(props: LokiOptionFieldsProps) {
'Resolution 1/1 sets step parameter of Loki metrics range queries such that each pixel corresponds to one data point. For better performance, lower resolutions can be picked. 1/2 only retrieves a data point for every other pixel, and 1/10 retrieves one data point per 10 pixels.'
}
>
<Select isSearchable={false} onChange={onResolutionChange} options={RESOLUTION_OPTIONS} value={resolution} />
<Select
isSearchable={false}
onChange={onResolutionChange}
options={RESOLUTION_OPTIONS}
value={resolution}
aria-label="Select resolution"
/>
</InlineField>
</div>
</div>