-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Simplify single line TextInput styling to allow for different heights #55343
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
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. @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 |
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.
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. |
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 and tests well
✋ 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
TextInput
that was both:multiline=false
)isMarkdownEnabled=true
)We mostly have either multiline
RNLiveMarkdown
components or simple single line text components.Very soon we will start to use a single-line
RNLiveMarkdown
component 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: [HOLD for payment 2025-02-07] [HOLD for payment 2025-02-04] [$250] Update Search page to always show search input and type tabs at the top #52317 (comment)View
parent of input, which does not break any other use casesheight
+lineHeight
hack had to say for iOS unfortunatelyFixed Issues
$ #50949
$ #52317
PROPOSAL:
Tests
Merchant
fieldDescription
fieldNOTE: single line live markdown will be tested once we add it in another PR
Offline tests
QA Steps
Merchant
fieldDescription
fieldPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
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