Skip to content

Commit

Permalink
[Search][a11y] Fix table row screen reader error (elastic#203136)
Browse files Browse the repository at this point in the history
##  Closes elastic#199113

Allows errors in the table row to be read by screen readers.
  • Loading branch information
navarone-feekery authored and Samiul-TheSoccerFan committed Dec 10, 2024
1 parent f03bac4 commit 9c85fa7
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 9c85fa7

Please sign in to comment.