Skip to content

Commit

Permalink
[8.17] [Search][a11y] Fix table row screen reader error (#203136) (#2…
Browse files Browse the repository at this point in the history
…03218)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Search][a11y] Fix table row screen reader error
(#203136)](#203136)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Navarone
Feekery","email":"13634519+navarone-feekery@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-06T09:10:26Z","message":"[Search][a11y]
Fix table row screen reader error (#203136)\n\n## Closes
https://github.com/elastic/kibana/issues/199113\r\n\r\nAllows errors in
the table row to be read by screen
readers.","sha":"1a9893bd6f7fd3fb94b08459e05921a00d86b8c5","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-major"],"title":"[Search][a11y]
Fix table row screen reader
error","number":203136,"url":"https://github.com/elastic/kibana/pull/203136","mergeCommit":{"message":"[Search][a11y]
Fix table row screen reader error (#203136)\n\n## Closes
https://github.com/elastic/kibana/issues/199113\r\n\r\nAllows errors in
the table row to be read by screen
readers.","sha":"1a9893bd6f7fd3fb94b08459e05921a00d86b8c5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203136","number":203136,"mergeCommit":{"message":"[Search][a11y]
Fix table row screen reader error (#203136)\n\n## Closes
https://github.com/elastic/kibana/issues/199113\r\n\r\nAllows errors in
the table row to be read by screen
readers.","sha":"1a9893bd6f7fd3fb94b08459e05921a00d86b8c5"}}]}]
BACKPORT-->

Co-authored-by: Navarone Feekery <13634519+navarone-feekery@users.noreply.github.com>
  • Loading branch information
kibanamachine and navarone-feekery authored Dec 6, 2024
1 parent 466815a commit 7a96fad
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ export const BodyRow = <Item extends object>({
<EuiFlexGroup direction="column">
{errors.map((errorMessage, errorMessageIndex) => (
<EuiFlexItem key={errorMessageIndex}>
<EuiCallOut iconType="warning" size="s" color="danger" title={errorMessage} />
<EuiCallOut
role="alert"
aria-live="polite"
iconType="warning"
size="s"
color="danger"
title={errorMessage}
/>
</EuiFlexItem>
))}
</EuiFlexGroup>
Expand Down

0 comments on commit 7a96fad

Please sign in to comment.