-
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
Improving autofill background appearance on password inputs #7099
Improving autofill background appearance on password inputs #7099
Conversation
Hey team, I'm struggling to test on iOS. The autofill isn't triggering on the login. I would install 1Password but I don't have a paid iOS dev account to build for physical devices, so I'm stuck on the simulator. Do you have an idea? |
On it! Just need some time |
@Luke9389 do you know why that unit test is failing? |
It's an issue with OSBotify's GPG key. Not related to the PR |
@anthony-hull On iOS, I can autofill but the color of TextInput stays the same so nothing to show here |
Thank you very much for the help! Does it behave the same on the prod app from the app store? |
It goes yellow for me. Hmm, weird |
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.
Good work! Some suggestions
@anthony-hull |
I will
I'll have a look! Should be able to today. If not tomorrow :) |
I think this happens when you auto fill into the empty field when it's not using the secure input prop. That is when the password is toggled to visible and then you autofill. Autofilling the field in its default state I couldn't reproduce this. |
Oh true, have you found a solution for this? |
I've not been able to so far. I've not done much native visual debugging before now. |
do you have any ideas? or advice on how to debug this? |
Hmm you could experiment with padding. Maybe 1px more towards the bottom. |
I tried padding. Didn't seem to make a difference. I'll have another go tomorrow morning! |
Alright, I took a look into this and like @anthony-hull said, this only happens if you autofill when password is visible. On second thoughts, to notice this you gotta zoom and pixel peep. cc: @Luke9389 lmk if you think this should be fixed |
Hmm, let me see if I can crack it. It seems like we're off by the width of the border. |
I was wrong. It also happens when you use google autofill. And it's very noticeable screen-20220115-170514.mp4 |
I think we should try to fix the 1px gap issue before merging this. |
That is true. |
Bitwarden, Lastpass and iOS password manager don't highlight. Okay, probably safe to assume that there is no highlighting on iOS 😅 |
great news! I'll update the PR tomorrow morning with test screenshots and the fix for this second issue too! |
autoCompleteType={props.autoCompleteType === 'new-password' ? 'password' : props.autoCompleteType} | ||
innerRef={ref} | ||
|
||
// style added here to fix autofill background not filling to the bottom of the input |
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.
Start the comment with capital letter
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.
@anthony-hull LGTM
approving after this is 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.
@anthony-hull waiting on this
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 file doesn't exist anymore. I reverted the commit.
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.
@Luke9389 looks like the 1px gap issue is for TextInput
component too.
It's reproducible on main
for web.
It's on inputs for pages like DebitCardPage, but not on phone/email input even though both use the same component.
This is unrelated to the current PR and issue. What do you suggest is the best course of action?
Anthony's fix for Android doesn't work here because only some TextInput
s have the 1px gap issue.
Feels too much of a hack to do this to all inputs. |
I agree @anthony-hull |
Yup, I agree that we should open a new issue and solve the gap separately. |
I think @rushatgabhane should be the one to get the bug report credit for that since he mentioned it first, here. Are you ok with that @anthony-hull? |
Yeah that makes sense to me! |
This reverts commit 5c4da64.
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.
Just wanted to let y'all know that I'll review this tomorrow. Super stacked with stuff to do today 😅 |
Nw, take your time 😄 |
Cool :) |
I'm back today :) |
@Luke9389 bump :) |
Thanks, @rushatgabhane. Sorry, I've been swamped recently :D |
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 @rushatgabhane and @anthony-hull!
✋ 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 production by @sketchydroide in version: 1.1.34-0 🚀
|
Details
When auto filling any normal field we should see the whole input styled by autofill stylings
When autofilling a password input we should see part of the input styled with a strait border and a space before the visibility toggle button.
Fixed Issues
$ #7016
Tests
QA Steps
Tested On
Screenshots
Web
Hasn't regressed on other non secure inputs
Mobile Web
Desktop
There isn't any autofill on this
iOS
iOS doesn't colour backrounds on autofill. N/A
Android
Fix border underling for inputs on android: