[8.7] [Synthetics] add metric item aria label (#151939) (#151955)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Synthetics] add metric item aria label
(#151939)](https://github.com/elastic/kibana/pull/151939)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Dominique
Clarke","email":"dominique.clarke@elastic.co"},"sourceCommit":{"committedDate":"2023-02-22T23:58:23Z","message":"[Synthetics]
add metric item aria label (#151939)\n\n## Summary\r\n\r\nThis missing
aria-label is causing console errors on the overview
page.","sha":"9a40d6a56b770fd8057ede155e1ec0e3462066f0","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:uptime","release_note:skip","v8.7.0","v8.8.0"],"number":151939,"url":"https://github.com/elastic/kibana/pull/151939","mergeCommit":{"message":"[Synthetics]
add metric item aria label (#151939)\n\n## Summary\r\n\r\nThis missing
aria-label is causing console errors on the overview
page.","sha":"9a40d6a56b770fd8057ede155e1ec0e3462066f0"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151939","number":151939,"mergeCommit":{"message":"[Synthetics]
add metric item aria label (#151939)\n\n## Summary\r\n\r\nThis missing
aria-label is causing console errors on the overview
page.","sha":"9a40d6a56b770fd8057ede155e1ec0e3462066f0"}}]}] BACKPORT-->

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
This commit is contained in:
Kibana Machine 2023-02-22 20:03:15 -05:00 committed by GitHub
parent 8f84128ada
commit a216384ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ export const MetricItemIcon = ({
}
}}
>
<EuiButtonIcon iconType="alert" color="danger" size="m" />
<EuiButtonIcon iconType="alert" color="danger" size="m" aria-label={ERROR_DETAILS} />
</StyledIcon>
}
isOpen={configIdByLocation === isPopoverOpen}