[9.0] [ObsUX][A11y] Add area label to comparison drop down (#215664) (#215717)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[ObsUX][A11y] Add area label to comparison drop down
(#215664)](https://github.com/elastic/kibana/pull/215664)

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

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

<!--BACKPORT
[{"author":{"name":"Miriam","email":"31922082+MiriamAparicio@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-24T13:59:22Z","message":"[ObsUX][A11y]
Add area label to comparison drop down (#215664)\n\nCloses
https://github.com/elastic/kibana/issues/210254\n\nBefore\n\n<img
width=\"1494\" alt=\"Screenshot 2025-03-24 at 10 51
01\"\nsrc=\"https://github.com/user-attachments/assets/872ca24d-8087-4261-bdf0-19107b13d01a\"\n/>\n\nAfter\n\n<img
width=\"1494\" alt=\"Screenshot 2025-03-24 at 10 49
51\"\nsrc=\"https://github.com/user-attachments/assets/6d840f70-41b3-4891-ab91-cf99f3c6a93e\"\n/>","sha":"a55e3253e70d74735ab474c65f013b6172d0a8fd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:obs-ux-infra_services","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[ObsUX][A11y]
Add area label to comparison drop
down","number":215664,"url":"https://github.com/elastic/kibana/pull/215664","mergeCommit":{"message":"[ObsUX][A11y]
Add area label to comparison drop down (#215664)\n\nCloses
https://github.com/elastic/kibana/issues/210254\n\nBefore\n\n<img
width=\"1494\" alt=\"Screenshot 2025-03-24 at 10 51
01\"\nsrc=\"https://github.com/user-attachments/assets/872ca24d-8087-4261-bdf0-19107b13d01a\"\n/>\n\nAfter\n\n<img
width=\"1494\" alt=\"Screenshot 2025-03-24 at 10 49
51\"\nsrc=\"https://github.com/user-attachments/assets/6d840f70-41b3-4891-ab91-cf99f3c6a93e\"\n/>","sha":"a55e3253e70d74735ab474c65f013b6172d0a8fd"}},"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/215664","number":215664,"mergeCommit":{"message":"[ObsUX][A11y]
Add area label to comparison drop down (#215664)\n\nCloses
https://github.com/elastic/kibana/issues/210254\n\nBefore\n\n<img
width=\"1494\" alt=\"Screenshot 2025-03-24 at 10 51
01\"\nsrc=\"https://github.com/user-attachments/assets/872ca24d-8087-4261-bdf0-19107b13d01a\"\n/>\n\nAfter\n\n<img
width=\"1494\" alt=\"Screenshot 2025-03-24 at 10 49
51\"\nsrc=\"https://github.com/user-attachments/assets/6d840f70-41b3-4891-ab91-cf99f3c6a93e\"\n/>","sha":"a55e3253e70d74735ab474c65f013b6172d0a8fd"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Miriam <31922082+MiriamAparicio@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-03-24 16:45:29 +01:00 committed by GitHub
parent 6f39c1173a
commit 9eacca23e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,6 +99,9 @@ export function TimeComparison() {
return (
<EuiSelect
aria-label={i18n.translate('xpack.apm.timeComparison.euiSelect.seletTimeComparisonLabel', {
defaultMessage: 'Select time comparison options',
})}
fullWidth={isSmall || isMedium}
data-test-subj="comparisonSelect"
disabled={comparisonEnabled === false}