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 |
| onSubmitEditing={validateAndSubmitForm} | ||
| autoCapitalize="none" | ||
| autoCorrect={false} | ||
| keyboardType={CONST.KEYBOARD_TYPE.EMAIL_ADDRESS} |
There was a problem hiding this comment.
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.
I think go is fine, thanks.
Reviewer Checklist
Screenshots/VideosWebN/A DesktopN/A |
Ollyws
left a comment
There was a problem hiding this comment.
@MonilBhavsar We've gone for "Go" for the enter key label, let me know if you disagree with this, otherwise:
LGTM.
| accessibilityLabel={translate('loginForm.phoneOrEmail')} | ||
| accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} | ||
| value={login} | ||
| returnKeyType="go" |
There was a problem hiding this comment.
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.
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.
Is platform specific key required. I see for other pages we have simple static value as 'done'
There was a problem hiding this comment.
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.
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.
Hello )
Can you share your thoughts, please ?)
There was a problem hiding this comment.
also cc @dubielzyk-expensify
But yeah, having "go" here makes sense to me.
There was a problem hiding this comment.
Thank you! Let's use go 👍
|
I added a little manager for returnKeyType ) |
|
@Ollyws |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Looks like we're missing PDFPasswordForm
it's not necessary ) |
|
@MonilBhavsar |
|
✋ 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Not relevant
MacOS: Desktop
Not relevant