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
Commit 13b3b85
Browse filesBrowse the repository at this point in the historyBrowse files
Fix per-side border colors drawing outside the view on Android (#59787)
* Fix per-side border colors drawing outside the view on Android
When a border without a radius has different colors per side, BorderDrawable
draws each side as a filled quadrilateral, but that branch never set the
paint's style. A drawable first drawn with one border color leaves its paint
on STROKE with the border width, so after a change to per-side colors the
sides were stroked and spilled outside the view. Set the style to FILL there,
as the rounded branch already does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add an RNTester example and visual test for changing to per-side border colors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Crop the per-side border colors visual test to the box
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/drawable/BorderDrawableTest.kt
Copy file name to clipboardExpand all lines: packages/rn-tester/visual-tests/suites/border.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,5 +5,6 @@
5
5
|`corner-radii`| Initial rendering |
6
6
|`child-clipping-radius`| Initial rendering |
7
7
|`equal-width-borders`| Initial rendering |
8
+
|`color-change`| After tapping to change from one border color to per-side colors |
8
9
9
10
Screenshots use the existing RNTester example crops. Each example starts from a fresh app launch; captures wait for the target and for animations to settle.
0 commit comments