Repository navigation
Conversation
Abbondanzo
left a comment
There was a problem hiding this comment.
This test is failing. Could you please also provide evidence of the fix working through before/after screenshots, recordings, etc? You should be running these tests locally and building RNTester to verify your changes are working
|
Fixed the test in 03d3f5c, it was passing |
Visual regressionNo visual differences at ios: no capture |
|
The test passes now, and build_android and test_android_okhttp3 are green on 03d3f5c. I still can't build RNTester on this machine (no Android SDK or JDK), so I have no screenshots yet. I'll add before/after ones once I have a working setup. |
Summary:
When
numberOfLinescuts a<Text>at an inline<View>on Android, the ellipsis is drawn black. The placeholder for the inline view has no color span, so Android draws its ellipsis with the layout's paint, andupdateTextPaintsets that paint's size, typeface and letter spacing but never its color. It now sets the color from the base text attributes when one is set, andresetTextPaintputs it back to the default so a reused paint doesn't keep an old color.Fixes #60391
Changelog:
[ANDROID] [FIXED] - Fix the ellipsis being drawn black when
numberOfLinescuts aTextat an inline viewTest Plan:
Added a test in
TextLayoutManagerFontWeightAdjustmentTestthat checksupdateTextPaintapplies the base color andresetTextPaintclears it. The reporter confirmed on 0.89.0-rc.3 that setting the layout paint's color to the base text color makes the ellipsis match. I couldn't run the Android tests locally (no Android SDK on this machine), so I'm relying on CI.