[No QA] [TS migration] Review and clean up Styles files - #27660
Conversation
| uploadPreviewActivityIndicator: colors.lightHighlightBackground, | ||
| dropUIBG: 'rgba(252, 251, 249, 0.92)', | ||
| dropTransparentOverlay: 'rgba(255,255,255,0)', | ||
| receiptDropUIBG: '', // TODO: add color |
There was a problem hiding this comment.
Are we going to merge with the TODO?
| receiptDropUIBG: '', // TODO: add color | |
| receiptDropUIBG: '', // TODO: add color |
There was a problem hiding this comment.
There is an ongoing Theme migration to Typescript PR, they marked receiptDropUIBG as optional. They also typed themes a bit differently, we need to coordinate these two PRs @fabioh8010, wdyt?
There was a problem hiding this comment.
rezkiy37
left a comment
There was a problem hiding this comment.
Left a few comments, overall LGTM. Hard and good work!
There was a problem hiding this comment.
Great work overall! 💯
@fabioh8010 Did you test that using styles inside components works well?
| uploadPreviewActivityIndicator: colors.lightHighlightBackground, | ||
| dropUIBG: 'rgba(252, 251, 249, 0.92)', | ||
| dropTransparentOverlay: 'rgba(255,255,255,0)', | ||
| receiptDropUIBG: '', // TODO: add color |
There was a problem hiding this comment.
There is an ongoing Theme migration to Typescript PR, they marked receiptDropUIBG as optional. They also typed themes a bit differently, we need to coordinate these two PRs @fabioh8010, wdyt?
|
Ale you need to resolve conflicts @fabioh8010 |
|
@hayata-suenaga will you be able to look again? 😄 |
…yle/styles-refactor
…yle/styles-refactor
…yle/styles-refactor
|
Thank you for answering all questions I have 🙇 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.84-0 🚀
|
|
This PR caused regression - #29602, #29611 |
|
Yes, I will try to do PR asap @situchan |
| ...flex.flexWrap, | ||
| ...flex.flex1, |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
Details
This PR:
react-native-webstyle and component props to the corereact-nativecomponents. Please note that the solution is not perfect as this is actually a current issue in the community (Using TypeScript x React Native Web necolas/react-native-web#832, Exporting types necolas/react-native-web#1684).styles.jsto TypeScriptCSSPropertiesas it's not needed anymore.Fixed Issues
$
PROPOSAL: N/A
Tests
Main flows test.
Offline tests
Main flows test.
QA Steps
Main flows test.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-09-18.at.11.50.02.mov
Screen.Recording.2023-09-18.at.11.50.37.mov
Desktop
Screen.Recording.2023-09-18.at.11.51.13.mov
Mobile Web - Chrome
Screen.Recording.2023-09-18.at.11.52.21.mov
Android
Screen.Recording.2023-09-18.at.11.53.40.mov
Mobile Web - Safari
Screen.Recording.2023-09-18.at.11.55.06.mov
iOS
Screen.Recording.2023-09-18.at.11.56.04.mov