-
Notifications
You must be signed in to change notification settings - Fork 165
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: mark inset*
, marginBlock*
, marginInline*
, paddingBlock*
and paddingInline*
props as built-in support
#219
Open
ecreeth
wants to merge
6
commits into
facebook:main
Choose a base branch
from
ecreeth:add-new-layout-props
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+44
−98
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9817b67
feat: add new layout props
ecreeth 2d3fb88
Merge branch 'main' into add-new-layout-props
ecreeth 5f3a3e3
fix: snapshots tests
ecreeth c8d25c4
feat: add new layout props
ecreeth e75fa97
fix: snapshots tests
ecreeth 71f927b
Merge branch 'add-new-layout-props' of https://github.com/ecreeth/rea…
ecreeth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -999,10 +999,7 @@ exports[`properties: logical direction inlineSize: minInlineSize after minWidth | |
exports[`properties: logical direction inset: inset 1`] = ` | ||
{ | ||
"style": { | ||
"bottom": 1, | ||
"end": 1, | ||
"start": 1, | ||
"top": 1, | ||
"inset": 1, | ||
}, | ||
} | ||
`; | ||
|
@@ -1011,6 +1008,7 @@ exports[`properties: logical direction inset: inset vs top 1`] = ` | |
{ | ||
"style": { | ||
"bottom": 100, | ||
"insetBlockStart": 3, | ||
"left": 10, | ||
"right": 10, | ||
"top": 100, | ||
|
@@ -1021,8 +1019,7 @@ exports[`properties: logical direction inset: inset vs top 1`] = ` | |
exports[`properties: logical direction inset: insetBlock 1`] = ` | ||
{ | ||
"style": { | ||
"bottom": 2, | ||
"top": 2, | ||
"insetBlock": 2, | ||
}, | ||
} | ||
`; | ||
|
@@ -1031,6 +1028,7 @@ exports[`properties: logical direction inset: insetBlock vs top 1`] = ` | |
{ | ||
"style": { | ||
"bottom": 100, | ||
"insetBlockStart": 3, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here too |
||
"top": 100, | ||
}, | ||
} | ||
|
@@ -1039,7 +1037,7 @@ exports[`properties: logical direction inset: insetBlock vs top 1`] = ` | |
exports[`properties: logical direction inset: insetBlockEnd 1`] = ` | ||
{ | ||
"style": { | ||
"bottom": 4, | ||
"insetBlockEnd": 4, | ||
}, | ||
} | ||
`; | ||
|
@@ -1048,21 +1046,23 @@ exports[`properties: logical direction inset: insetBlockEnd vs bottom 1`] = ` | |
{ | ||
"style": { | ||
"bottom": 100, | ||
"insetBlockEnd": 4, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction inset: insetBlockStart 1`] = ` | ||
{ | ||
"style": { | ||
"top": 3, | ||
"insetBlockStart": 3, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction inset: insetBlockStart vs top 1`] = ` | ||
{ | ||
"style": { | ||
"insetBlockStart": 3, | ||
"top": 100, | ||
}, | ||
} | ||
|
@@ -1071,120 +1071,119 @@ exports[`properties: logical direction inset: insetBlockStart vs top 1`] = ` | |
exports[`properties: logical direction inset: insetInline 1`] = ` | ||
{ | ||
"style": { | ||
"end": 5, | ||
"start": 5, | ||
"insetInline": 5, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction inset: insetInlineEnd 1`] = ` | ||
{ | ||
"style": { | ||
"end": 7, | ||
"insetInlineEnd": 7, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction inset: insetInlineStart 1`] = ` | ||
{ | ||
"style": { | ||
"start": 6, | ||
"insetInlineStart": 6, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction margin: marginBlock 1`] = ` | ||
{ | ||
"style": { | ||
"marginVertical": 1, | ||
"marginBlock": 1, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction margin: marginBlockEnd 1`] = ` | ||
{ | ||
"style": { | ||
"marginBottom": 3, | ||
"marginBlockEnd": 3, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction margin: marginBlockStart 1`] = ` | ||
{ | ||
"style": { | ||
"marginTop": 2, | ||
"marginBlockStart": 2, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction margin: marginInline 1`] = ` | ||
{ | ||
"style": { | ||
"marginHorizontal": 1, | ||
"marginInline": 1, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction margin: marginInlineEnd 1`] = ` | ||
{ | ||
"style": { | ||
"marginEnd": 3, | ||
"marginInlineEnd": 3, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction margin: marginInlineStart 1`] = ` | ||
{ | ||
"style": { | ||
"marginStart": 2, | ||
"marginInlineStart": 2, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction padding: paddingBlock 1`] = ` | ||
{ | ||
"style": { | ||
"paddingVertical": 1, | ||
"paddingBlock": 1, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction padding: paddingBlockEnd 1`] = ` | ||
{ | ||
"style": { | ||
"paddingBottom": 3, | ||
"paddingBlockEnd": 3, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction padding: paddingBlockStart 1`] = ` | ||
{ | ||
"style": { | ||
"paddingTop": 2, | ||
"paddingBlockStart": 2, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction padding: paddingInline 1`] = ` | ||
{ | ||
"style": { | ||
"paddingHorizontal": 1, | ||
"paddingInline": 1, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction padding: paddingInlineEnd 1`] = ` | ||
{ | ||
"style": { | ||
"paddingEnd": 3, | ||
"paddingInlineEnd": 3, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`properties: logical direction padding: paddingInlineStart 1`] = ` | ||
{ | ||
"style": { | ||
"paddingStart": 2, | ||
"paddingInlineStart": 2, | ||
}, | ||
} | ||
`; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This looks like a regression? Depends on whether RN ignore the logical style in favor of the physical style
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.
This is how RN works, so this might be expected.