-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix error message positioning on amount page #30287
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 |
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.
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 🚀
|
@@ -261,14 +261,14 @@ function MoneyRequestAmountForm({amount, currency, isEditing, forwardedRef, onCu | |||
}} | |||
onKeyPress={textInputKeyPress} | |||
/> | |||
{!_.isEmpty(formError) && ( | |||
<FormHelpMessage | |||
style={[styles.pAbsolute, styles.b0, styles.mb0, styles.ph5, styles.w100]} |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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