Fix applying styling when it want to apply opacity on OpacityView#18153
Fix applying styling when it want to apply opacity on OpacityView#18153mountiny merged 3 commits intoExpensify:mainfrom
Conversation
|
@puneetlath @thesahindia One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
I think this is a good place to fix this regression - #17404 (comment) Lines 2475 to 2481 in 601e7eb |
|
Removed these styles |
|
App/src/components/Pressable/GenericPressable/BaseGenericPressable.js Lines 24 to 34 in 601e7eb @robertKozik please use styles.cursorDisabled, styles.cursorText , styles.cursorPointer.No need to import cursor from '../../../styles/utilities/cursor'; separately.
|
|
Right, forgot about them. Sorry for trouble |
|
|
|
@aimane-chnaif could you fill out the checklist on this one please? |
mountiny
left a comment
There was a problem hiding this comment.
@puneetlath Do you want to review? I think I will merge this given it fixes coupl edeploy blockers
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
Fix applying styling when it want to apply opacity on OpacityView (cherry picked from commit 5498e38)
…-18153 🍒 Cherry pick PR #18153 to staging 🍒
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.8-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
marcaaron
left a comment
There was a problem hiding this comment.
Retesting this one on staging now to see if we can check it off.
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.8-8 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|

Details
Fixes the issue when passed style to OpacityView wants to control opacity value. Before passed opacity would be override by the animation, as on mount animated opacity would be changed to 1. With this fix, all styling will be applied to the view, which is a child of OpacityView, so opacity won't be crashing between each other.
Fixed Issues
$ #18146
PROPOSAL: #18146 (comment)
Tests
Click on 'Avatar'
Click on 'Profile' link
Click on 'Contact method' link
Click on 'New contact method' button
Offline tests
Same as test steps
QA Steps
Same as test steps
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-04-28.at.18.36.35.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android