[a11y] Fix EuiCallout eslint rule errors by adding a new prop announceOnMount in conditional rendered instances#235054
Conversation
This caused a failure on main, likely due to a PR being merged around the same time as elastic#229868, which removes the usage of the translation.
announceonmount in conditional rendered instances
announceonmount in conditional rendered instancesannounceOnMount in conditional rendered instances
5ccb9de to
4d41f85
Compare
This caused a failure on main, likely due to a PR being merged around the same time as elastic#229868, which removes the usage of the translation.
|
Hi, teams! |
tiansivive
left a comment
There was a problem hiding this comment.
Code LGTM now from EA
dplumlee
left a comment
There was a problem hiding this comment.
@paulinashakirova thanks for addressing my comments, rule management changes now look good!
maxcold
left a comment
There was a problem hiding this comment.
contextual-security-apps owned files LGTM
|
Hi! |
gsoldevila
left a comment
There was a problem hiding this comment.
Core changes LGTM (code review only)
talboren
left a comment
There was a problem hiding this comment.
lgtm on workflows related files
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
|
Summary
This PR introduces fix for our new eslint rule
@elastic/eui/callout-announce-on-mount.Problem
tldr; When callouts appear dynamically (e.g., after user interactions, form validation errors, or status changes), screen readers may not announce their content to users.
The
announceOnMountprop ensures these messages are properly announced to users with assistive technologies.Please double check your code - to make sure that if
EuiCalloutappears dynamically after a user interaction, theannounceOnMountis NOT set to false. I did my best, but might have missed some because of my lacking context.Note
If
EuiCallOutis inside a condition, announceOnMount must be set explicitly.