-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
feat: Add logical border block color properties #35999
feat: Add logical border block color properties #35999
Conversation
Base commit: 83743e1 |
@property (nonatomic, assign) CGFloat borderBlockWidth; | ||
@property (nonatomic, assign) CGFloat borderBlockEndWidth; | ||
@property (nonatomic, assign) CGFloat borderBlockStartWidth; |
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.
I'll put up a follow-up PR implementing this but this is necessary here due to RCT_VIEW_BORDER_PROPERTY
which creates set functions for both border##SIDE##Color
and border##SIDE##Width
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: This PR implements logical border block color properties as requested on facebook#34425. This implementation includes the addition of the following style properties - `borderBlockColor`, equivalent to `borderTopColor` and `borderBottomColor`. - `borderBlockEndColor`, equivalent to `borderBottomColor`. - `borderBlockStartColor`, equivalent to `borderTopColor`. ## Changelog [GENERAL] [ADDED] - Add logical border block color properties Pull Request resolved: facebook#35999 Test Plan: 1. Open the RNTester app and navigate to the `View` page 2. Test the new style properties through the `Logical Border Color` section <table> <tr> <td>Android</td> <td>iOS</td> </tr> <tr> <td><video src="https://user-images.githubusercontent.com/11707729/215384882-5b96518e-ad70-4157-a7f3-130f488cc41c.mov" alt="1" width="360px" /> </td> <td> <video src="https://user-images.githubusercontent.com/11707729/215392728-cfc6a097-26c1-4ffe-ab0e-f0a5a71a902d.mov"2" width="360px" /> </td> </tr> </table> Reviewed By: cipolleschi Differential Revision: D42849911 Pulled By: jacdebug fbshipit-source-id: 822cff5264689c42031d496105537032b5cd31ef
Summary
This PR implements logical border block color properties as requested on #34425. This implementation includes the addition of the following style properties
borderBlockColor
, equivalent toborderTopColor
andborderBottomColor
.borderBlockEndColor
, equivalent toborderBottomColor
.borderBlockStartColor
, equivalent toborderTopColor
.Changelog
[GENERAL] [ADDED] - Add logical border block color properties
Test Plan
View
pageLogical Border Color
sectionScreen.Recording.2023-01-30.at.01.01.44.mov
Screen.Recording.2023-01-30.at.02.12.26.mov