Simplify single line TextInput styling to allow for different heights#55343
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
122de64 to
0131ea7
Compare
0131ea7 to
04c80f6
Compare
| @@ -1247,8 +1247,6 @@ const styles = (theme: ThemeColors) => | |||
| }, | |||
|
|
|||
| textInputAndIconContainer: { | |||
There was a problem hiding this comment.
this style is only used inside TextInput and the changes were tested as part of this task - it does not affect anything else
|
@rayane-djouah 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] |
|
CC @luacmartins for visibility, we need this for live markdown highlighting in Search. |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM. @rayane-djouah all yours
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-23.at.3.37.16.PM.movAndroid: mWeb ChromeScreen.Recording.2025-01-23.at.3.34.11.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.15.29.03.mp4Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.15.30.09.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.15.36.47.mp4MacOS: Chrome / SafariScreen.Recording.2025-01-23.at.3.41.52.PM.movMacOS: DesktopScreen.Recording.2025-01-23.at.3.40.31.PM.mov |
rayane-d
left a comment
There was a problem hiding this comment.
The code looks good. I will thoroughly test the changes tomorrow to make sure nothing is broken.
|
Thanks @rayane-djouah |
|
BUG: In the iOS native app, the custom message text input for new member invitations is shifted to the top.
cc @Kicu |
|
Looking 👀 |
|
Fixed by returning 1 style that I removed, verified that it works. Screen.Recording.2025-01-22.at.10.49.20.mov |
|
@rayane-djouah let's prioritize reviewing this one when you're online since it blocks other Search v2.5 work. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.89-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|


This PR is needed for 2 other PRs that are being worked on.
Explanation of Change
Previously we almost never rendered
TextInputthat was both:multiline=false)isMarkdownEnabled=true)We mostly have either multiline
RNLiveMarkdowncomponents or simple single line text components.Very soon we will start to use a single-line
RNLiveMarkdowncomponent in Search (check this PR: #54403) - and for this I needed to modify some Input styling.The changes in this PR are to solve 2 separate but related things:
52px, but in here there was a need to change the height: [Due for payment 2025-02-27] [$250] Update Search page to always show search input and type tabs at the top #52317 (comment)Viewparent of input, which does not break any other use casesheight+lineHeighthack had to say for iOS unfortunatelyFixed Issues
$ #50949
$ #52317
PROPOSAL:
Tests
MerchantfieldDescriptionfieldNOTE: single line live markdown will be tested once we add it in another PR
Offline tests
QA Steps
MerchantfieldDescriptionfieldPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
rec-andr-lms.mp4
Android: mWeb Chrome
rec-andr-mweb-lms.mp4
iOS: Native
rec-ios-lms.mov
iOS: mWeb Safari
rec-ios-mweb-lms.mp4
MacOS: Chrome / Safari
rec-web-lms.mp4
MacOS: Desktop