Skip to content

Commit 6665dd3

Browse files
authored
[A11y][APM] Add aria-label to latency selector in service overview (#215644)
## Summary Fixes #210270 This PR adds an `aria-label` to solve the "Element missing an accessible name" A11y critical issue. ## How to test 1. Download the [axe devtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd) 2. Go into a service overview and run the scanner from axe devtools 3. You should see a critical error 4. Checkout this branch 5. Error should be solved
1 parent af5b6e3 commit 6665dd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/solutions/observability/plugins/apm/public/components/shared/charts/latency_chart/latency_aggregation_type_select.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export function LatencyAggregationTypeSelect({
2727
<EuiSelect
2828
data-test-subj="apmLatencyChartSelect"
2929
compressed
30+
aria-label={i18n.translate('xpack.apm.serviceOverview.latencyChartTitle.selector', {
31+
defaultMessage: 'Metric selector',
32+
})}
3033
prepend={i18n.translate('xpack.apm.serviceOverview.latencyChartTitle.prepend', {
3134
defaultMessage: 'Metric',
3235
})}

0 commit comments

Comments
 (0)