-
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
[CP Staging] Fix some text inputs are unaligned if there are prefix characters #50795
Conversation
Signed-off-by: Tsaqif <[email protected]>
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@alitoshmatov Please 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] |
@tsa321 Can you explain what went wrong and what is our solution here |
@alitoshmatov, based on the expected result to add padding between the bottom line of the text input and the text in the auto-grow markdown text input, we need to add Actually, the issue with adding padding is distinct from the original issue regarding the visibility of the last line in the markdown text input. Therefore, I think it falls outside the scope of the original problem. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativefix-android.movAndroid: mWeb Chromefix-mweb.moviOS: Nativefix-ios.mp4iOS: mWeb Safarifix-safari.mp4MacOS: Chrome / Safarifix-web.movMacOS: Desktopfix-desktop.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.
LGTM!
src/styles/index.ts
Outdated
@@ -1181,6 +1181,9 @@ const styles = (theme: ThemeColors) => | |||
overflow: 'hidden', | |||
borderBottomWidth: 2, | |||
borderColor: theme.border, | |||
}, | |||
|
|||
autoGrowMarkdwonTextInputPaddingBottom: { |
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.
Rather than write a new style for this, why not just use pb2
- it's a utility class that already exists.
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.
+1
Given this fixes some deploy blockers, for urgency I create another PR here #50836. |
Signed-off-by: Tsaqif <[email protected]>
@youssef-lr I have updated the code to use the |
@@ -1181,7 +1181,6 @@ const styles = (theme: ThemeColors) => | |||
overflow: 'hidden', | |||
borderBottomWidth: 2, | |||
borderColor: theme.border, | |||
paddingBottom: 8, |
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.
Is this intentional?
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.
@youssef-lr , Yes, this is what I added from my previous PR that caused the regressions.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Fix some text inputs are unaligned if there are prefix characters (cherry picked from commit 137c6d6) (CP triggered by marcaaron)
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.0.49-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 9.0.49-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
We are unable to verify this on Desktop as Build did not release yet. Rest platforms are pass |
@mvtglobally it should work fine on desktop too. |
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.49-2 🚀
|
Details
Fixed Issues
$ #48281
$ #50777
$ #50778
PROPOSAL: #48281 (comment)
Tests
Offline tests
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 methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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-native-d.mp4
Android: mWeb Chrome
android-mweb_d.mp4
iOS: Native
ios-native_d.mp4
iOS: mWeb Safari
ios-msfari_d.mp4
MacOS: Chrome / Safari
macos-web-d.mp4
MacOS: Desktop
macos-desktop_d.mp4