fix error message positioning on amount page#30287
Conversation
…essage-positioning-on-amount-page
Does this look good to you? demo.mov |
|
oops! forgot to tag. |
What is original value? |
|
@situchan 16px => |
|
Please share screenshot (before fix and after fix). We can always get approval from design team |
|
Sharing 'before and after' shortly |
cc: @situchan |
|
cc: @Expensify/design for the best padding selection |
|
Compiling the key comments for design team's review here: cc: @Expensify/design @shawnborton |
|
I'm cool with 12px but can you show a side-by-side of what it looks like both with and without the error message present? |
|
|
|
The first row is iPhone SE and the second row is iPhone 14.
|
|
That's feelin pretty good to me. |
|
Yup, same! |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
bump @amyevans |
|
friendly bump @amyevans |
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.93-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.93-1 🚀
|
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.94-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.94-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|
| /> | ||
| {!_.isEmpty(formError) && ( | ||
| <FormHelpMessage | ||
| style={[styles.pAbsolute, styles.b0, styles.mb0, styles.ph5, styles.w100]} |
There was a problem hiding this comment.
Absolutely positioning the error message caused #32661 where the error message starts to overlap the amount input when zooming in.









Details
#29204 (comment)
Using absolute position for the error message to avoid displacing the input
Fixed Issues
$ #29204
PROPOSAL: #29204 (comment)
Tests
Offline tests
na
QA 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
Android: Native
android.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
pr-ios.mov
iOS: mWeb Safari
pr-safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov