35338e9008
Summary: In some cases, `RCTRecursiveAccessibilityLabel` could return an accessibility label that had leading space, trailing space, or multiple spaces between words. This is because it always added a space before adding a label even if the label turned out to be empty. This is fixed by being stricter about adding spaces. Found test cases that used to introduce leading space, trailing space, or multiple spaces between words and verified that there aren't any extra spaces after the fix. ``` {/* Used to have leading space */} <View accessible={true}> <View /> <View accessibilityLabel='Two' /> <View accessibilityLabel='Three' /> </View> {/* Used to have 2 spaces between "One" and "Three" */} <View accessible={true}> <View accessibilityLabel='One' /> <View /> <View accessibilityLabel='Three' /> </View> {/* Used to have trailing space */} <View accessible={true}> <View accessibilityLabel='One' /> <View accessibilityLabel='Two' /> <View /> </View> ``` Additionally, my team is using this fix in our app. Adam Comella Microsoft Corp. Closes https://github.com/facebook/react-native/pull/14177 Differential Revision: D5127891 Pulled By: shergin fbshipit-source-id: 42c3022895d844959e0037eaf381b326af3cd6d1 |
||
---|---|---|
.. | ||
Base | ||
CxxBridge | ||
CxxModule | ||
CxxUtils | ||
DevSupport | ||
Executors | ||
Modules | ||
Profiler | ||
React.xcodeproj | ||
ReactLegacy.xcodeproj | ||
Views | ||
third-party.xcconfig |