[9.0] [A11y][APM] Add aria-label to latency selector in service overview (#215644) (#215695)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[A11y][APM] Add `aria-label` to latency selector in service overview
(#215644)](https://github.com/elastic/kibana/pull/215644)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Sergi
Romeu","email":"sergi.romeu@elastic.co"},"sourceCommit":{"committedDate":"2025-03-24T12:54:17Z","message":"[A11y][APM]
Add `aria-label` to latency selector in service overview (#215644)\n\n##
Summary\n\nFixes #210270\n\nThis PR adds an `aria-label` to solve the
\"Element missing an accessible\nname\" A11y critical issue.\n\n## How
to test\n1. Download the
[axe\ndevtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)\n2.
Go into a service overview and run the scanner from axe devtools\n3. You
should see a critical error\n4. Checkout this branch\n5. Error should be
solved","sha":"6665dd377a5b9f20873e8491308a8e156c5ec460","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","apm","Team:obs-ux-infra_services","backport:version","a11y","v8.18.0","v9.1.0","v8.19.0"],"title":"[A11y][APM]
Add `aria-label` to latency selector in service
overview","number":215644,"url":"https://github.com/elastic/kibana/pull/215644","mergeCommit":{"message":"[A11y][APM]
Add `aria-label` to latency selector in service overview (#215644)\n\n##
Summary\n\nFixes #210270\n\nThis PR adds an `aria-label` to solve the
\"Element missing an accessible\nname\" A11y critical issue.\n\n## How
to test\n1. Download the
[axe\ndevtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)\n2.
Go into a service overview and run the scanner from axe devtools\n3. You
should see a critical error\n4. Checkout this branch\n5. Error should be
solved","sha":"6665dd377a5b9f20873e8491308a8e156c5ec460"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215644","number":215644,"mergeCommit":{"message":"[A11y][APM]
Add `aria-label` to latency selector in service overview (#215644)\n\n##
Summary\n\nFixes #210270\n\nThis PR adds an `aria-label` to solve the
\"Element missing an accessible\nname\" A11y critical issue.\n\n## How
to test\n1. Download the
[axe\ndevtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)\n2.
Go into a service overview and run the scanner from axe devtools\n3. You
should see a critical error\n4. Checkout this branch\n5. Error should be
solved","sha":"6665dd377a5b9f20873e8491308a8e156c5ec460"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-24 16:12:57 +01:00 committed by GitHub
parent 6a0e800bf9
commit 7943eefdc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,6 +27,9 @@ export function LatencyAggregationTypeSelect({
<EuiSelect
data-test-subj="apmLatencyChartSelect"
compressed
aria-label={i18n.translate('xpack.apm.serviceOverview.latencyChartTitle.selector', {
defaultMessage: 'Metric selector',
})}
prepend={i18n.translate('xpack.apm.serviceOverview.latencyChartTitle.prepend', {
defaultMessage: 'Metric',
})}