[CP Staging] Fix some text inputs are unaligned if there are prefix characters#50795
Conversation
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
|
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 |
| borderColor: theme.border, | ||
| }, | ||
|
|
||
| autoGrowMarkdwonTextInputPaddingBottom: { |
There was a problem hiding this comment.
Rather than write a new style for this, why not just use pb2 - it's a utility class that already exists.
|
Given this fixes some deploy blockers, for urgency I create another PR here #50836. |
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
|
@youssef-lr I have updated the code to use the |
| overflow: 'hidden', | ||
| borderBottomWidth: 2, | ||
| borderColor: theme.border, | ||
| paddingBottom: 8, |
There was a problem hiding this comment.
@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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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-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