You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
For text input and password input components, use liveRegion on error message #1623
In order to vocalize automatically the error message in text input and password input components, add a liveRegion = LiveRegionMode.Polite to error semantics in OudsTextInputHelperTextErrorMessage:
The liveRegion is not working correctly, and several issues in the Google tracker mention problems with this functionality.
Announcing the error message while the user is typing is not recommended, but the following workaround allows the message to be announced at the appropriate time. You only have to add this near your OudsTextInput, OudsPasswordInput, OudsTextArea:
val view =LocalView.current
val errorMessage = oudsError?.message
LaunchedEffect(errorMessage) {
if (!errorMessage.isNullOrBlank()) {
@Suppress("DEPRECATION")
view.announceForAccessibility(errorMessage)
}
}
This code will not be added to OUDS-Android because it can vary depending on the use case but we will add sample code in the demo application for these composants.
Activity
paulinea commentedon Oct 9, 2026
The liveRegion is not working correctly, and several issues in the Google tracker mention problems with this functionality.
Announcing the error message while the user is typing is not recommended, but the following workaround allows the message to be announced at the appropriate time. You only have to add this near your
OudsTextInput,OudsPasswordInput,OudsTextArea:This code will not be added to OUDS-Android because it can vary depending on the use case but we will add sample code in the demo application for these composants.