Repository navigation
fix(rtl): use logical spacing and alignment on web #5291
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
base: main
Are you sure you want to change the base?
Changes from all commits
7542d3a
5beae49
6cb2079
f8858b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -367,14 +367,14 @@ ListItem.displayName = 'List.Item'; | |||||||||||||||
|
|
||||||||||||||||
| const styles = StyleSheet.create({ | ||||||||||||||||
| indent: { | ||||||||||||||||
| paddingLeft: 40, | ||||||||||||||||
| paddingStart: 40, | ||||||||||||||||
| }, | ||||||||||||||||
| row: { | ||||||||||||||||
| width: '100%', | ||||||||||||||||
| flexDirection: 'row', | ||||||||||||||||
| }, | ||||||||||||||||
| item: { | ||||||||||||||||
| paddingLeft: ListTokens.leadingSpace, | ||||||||||||||||
| paddingStart: ListTokens.leadingSpace, | ||||||||||||||||
| }, | ||||||||||||||||
|
Comment on lines
376
to
378
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. 🟡 Minor · RTL List.Item now stacks 32dp at the start and leaves the trailing icon flush In RTL on web, a
Suggested change
Suggested change Change Detailspersona: Useful? Reply Reply |
||||||||||||||||
| content: { | ||||||||||||||||
| flexShrink: 1, | ||||||||||||||||
|
|
||||||||||||||||
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.
🟡 Minor · ListAccordion and List accessory styles still use physical padding after ListItem went logical
In RTL,
ListAccordion's header title andtrailingItemkeeppaddingLeft(ListAccordion.tsx:508, 512) whileListItemchildren now usepaddingStart, so the header pins to the physical left while content pads on the inline start;getAccessoryStyles(utils.ts:42) also still setsmarginLeft: ListTokens.leadingSpace. Only one side of the matched pair was converted to logical properties.Details
persona:
react-native-paperUseful? Reply
@apex-sentinel-staging like, or@apex-sentinel-staging dislike <why>if it is not.Reply
@apex-sentinel-staging note ...to add context, or@apex-sentinel-staging pivot ...if it is wrong — I will re-check the cited code.