-
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
Login keyboard is not consistent in apps and browsers #29699
Login keyboard is not consistent in apps and browsers #29699
Conversation
@Ollyws Plus small clarification I delete And it seems to me that in addition to the coincidence of the confirmation button on iOS app and iOS browser And since this input is used to enter an email or phone number |
@@ -221,7 +222,6 @@ function LoginForm(props) { | |||
onSubmitEditing={validateAndSubmitForm} | |||
autoCapitalize="none" | |||
autoCorrect={false} | |||
keyboardType={CONST.KEYBOARD_TYPE.EMAIL_ADDRESS} |
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 type isn't redundant, it's used to specify a specific keyboard layout:
As far as android is concerned, there is no label on the enter key generally, see: https://lefkowitz.me/visual-guide-to-react-native-textinput-keyboardtype-options/
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.
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.
I think go is fine, thanks.
Reviewer Checklist
Screenshots/VideosWebN/A DesktopN/A |
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.
@MonilBhavsar We've gone for "Go" for the enter key label, let me know if you disagree with this, otherwise:
LGTM.
@@ -213,6 +213,7 @@ function LoginForm(props) { | |||
accessibilityLabel={translate('loginForm.phoneOrEmail')} | |||
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} | |||
value={login} | |||
returnKeyType="go" |
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.
Looks like we're using "done" in PDFPasswordForm and NewContactMethod page. So may be we use "done" for consistency?
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.
Done )
The only thing, since the confirmation icon on Android browser is tied to keyboardType, I added the condition that the Android application had the same icon as in the Android browser
In the case of iOS the text will be 'done'
cc: @Ollyws
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 platform specific key required. I see for other pages we have simple static value as 'done'
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.
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.
So android does not support 'done'?
And can we please fix these places too as it does seem like an exact issue
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 simpler option to keep consistency while avoiding using platform specific code would be to use returnKeyType="go"
by default on every instance, instead of done
.
Ofcourse on iOS that means the enter key would read go
instead of done
but either seems appropriate to me.
Any thoughts on this approach @MonilBhavsar ?
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.
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.
Hello )
Can you share your thoughts, please ?)
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.
also cc @dubielzyk-expensify
But yeah, having "go" here makes sense to me.
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.
Thank you! Let's use go 👍
I added a little manager for returnKeyType ) |
@Ollyws |
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.
Looks like we're missing PDFPasswordForm
it's not necessary ) |
@MonilBhavsar |
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.
Thanks!
✋ 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/MonilBhavsar in version: 1.3.88-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.88-11 🚀
|
Login keyboard is not consistent in safari
Details
Fixed Issues
$ #28569
PROPOSAL: #28569 (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 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Not relevant
MacOS: Desktop
Not relevant