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

* Loki: Add missing aria-label

* Update text

* Update text
This commit is contained in:
Ivana Huckova 2021-12-03 14:14:51 +01:00 committed by GitHub
parent 64cf0aa813
commit 698f452e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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