[MoneyRequestConfirmation] add hover style to fields on the money confirmation modal - #18347
marcochavezf merged 4 commits into
Conversation
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
|
@marcochavezf @aimane-chnaif 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] |
|
Deferring adding the recordings for all platforms until we reach the final design. Added the recording for Web for quick reference for @shawnborton and @aimane-chnaif before review. |
|
Field itself looks good but not when combined with button since no space between them. |
|
@aimane-chnaif agreed, would like to have the both the top and bottom margin finalised since right now the top margin is 8px, which might look weird in the video. |
|
I think that's probably fine as-is |
|
We could add some bottom margin under that field though, even just like 4-8px |
|
@shawnborton How's this? Leads to a separation of 12px between the two fields where the hover effect is not shown. Is this good or does no gap between the fields look better? 2023-05-03.22-19-19.mp4 |
|
I don't think Amount and Description should have a gap between them though, they can be "touching" |
|
Great, this should be good then? 2023-05-03.22-23-53.mp4 |
|
Yup that works for me, thanks! |
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
| {optionsList} | ||
| </View> | ||
| <View style={[styles.ph5, styles.pv5, styles.flexGrow1, styles.flexShrink0]}> | ||
| <View style={this.props.shouldUseStyleForChildren && [styles.ph5, styles.pv5, styles.flexGrow1, styles.flexShrink0]}> |
There was a problem hiding this comment.
it's not recommended to pass boolean value to style. let's use ternary operator
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
aimane-chnaif
left a comment
There was a problem hiding this comment.
Please apply same change here, though it's not used anywhere yet.
- <View style={[styles.ph5, styles.pb3]}>
+ <View style={this.props.shouldUseStyleForChildren ? [styles.ph5, styles.pb3] : []}>| {optionsList} | ||
| </View> | ||
| <View style={[styles.ph5, styles.pv5, styles.flexGrow1, styles.flexShrink0]}> | ||
| <View style={this.props.shouldUseStyleForChildren ? [styles.ph5, styles.pv5, styles.flexGrow1, styles.flexShrink0] : []}> |
There was a problem hiding this comment.
Let's make sure that styles.flexGrow1, styles.flexShrink0 removal doesn't cause any regressions, though I tested and confirmed.
There was a problem hiding this comment.
@aimane-chnaif Yes, I tested again and can confirm, doesn't look prone to any regressions.
I tried resizing the window on desktop and web and the existence / lack thereof flex styles does not affect the position or behaviour.
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
|
Added recordings for all platforms in the OP. |
aimane-chnaif
left a comment
There was a problem hiding this comment.
LGTM 🎉
@marcochavezf all yours!
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.10-1 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|

Details
With this PR, we are enabling the hover effect for the Description and Amount fields on the MoneyRequestConfirmationList component.
Fixed Issues
$ #17635
PROPOSAL: #17635 (comment)
Tests
Offline tests
N/A
QA Steps
Same as above.
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
web.mp4
Mobile Web - Chrome
android-mWeb.mp4
Mobile Web - Safari
iOS-mWeb.mp4
Desktop
desktop.mp4
iOS
iOS.mp4
Android
android.mp4