-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Support for accessibilityLiveRegion
Prop
#13596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
if (liveRegion == "none"){ | ||
return LiveSetting::Off; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems redundant to have this block if the default return value is LiveSetting::Off
.
}else if (liveRegion == "assertive"){ | ||
return LiveSetting::Assertive; | ||
} | ||
//assert(false); // TO-DO: swap to a RedBox error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, what is a RedBox error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you launch a React Native app, it is a kind of error that is shown at runtime in the app window. It helps alert the developer that something in the JavaScript is wrong.
* Add Tests * Change files * Fix Error * Change files * Format * Update Snapshots * Default to None
* Add Tests * Change files * Fix Error * Change files * Format * Update Snapshots * Default to None
Description
Type of Change
Why
Add Support for
accessibilityLiveRegion
PropResolves #13031
Resolves #13030
Resolves #13029
Resolves #13028
Resolves #13027
Resolves #13026
Resolves #13025
Resolves #13024
Resolves #12515
What
accessibilityLiveRegion
are supportednone
,polite
, andassertive
.accessibilityLiveRegion
/aria-live
#12515 for behavior of prop.Changelog
Should this change be included in the release notes: Yes
Add Support for
accessibilityLiveRegion
PropMicrosoft Reviewers: Open in CodeFlow