-
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
add show password toggle to secureTextInput #6501
add show password toggle to secureTextInput #6501
Conversation
@anthony-hull please add $ before the GH issue link. It's important for automation.
|
cc: @johnmlee101 for review. |
@johnmlee101 @parasharrajat @parasharrajat |
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'll let @parasharrajat do final review 😄
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.
onPressOut={this.props.onPress} | ||
translateX={this.props.translateX} | ||
/> | ||
<View style={[styles.flexRow]}> |
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.
Move the zIndex: -1
to this View
From the Textinput Style and remove it from Textinput
Line 633 in 85edddd
zIndex: -1, |
@@ -167,7 +175,7 @@ class BaseExpensiTextInput extends Component { | |||
{hasLabel ? ( | |||
<> | |||
{/* Adding this background to the label only for multiline text input, | |||
to prevent text overlaping with label when scrolling */} | |||
to prevent text overlapping with label when scrolling */} | |||
{this.props.multiline && <View style={styles.expensiTextInputLabelBackground} />} |
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.
Could you please add pointerEvents="none"
to this View
. it fixes one bug, not from your PR.
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.
expensiTextInputLabelBackground: {
position: 'absolute',
top: 0,
width: '100%',
height: 25,
backgroundColor: themeColors.componentBG,
borderTopRightRadius: variables.componentBorderRadiusNormal,
borderTopLeftRadius: variables.componentBorderRadiusNormal,
pointerEvents: 'none',
},
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 pointerEvents=none only work as a prop.
Co-authored-by: Rajat Parashar <parasharrajat@users.noreply.github.com>
Also other pointer events bug
@parasharrajat can you please check again? |
src/styles/styles.js
Outdated
@@ -610,17 +613,21 @@ const styles = { | |||
backgroundColor: themeColors.componentBG, | |||
borderTopRightRadius: variables.componentBorderRadiusNormal, | |||
borderTopLeftRadius: variables.componentBorderRadiusNormal, | |||
pointerEvents: 'none', |
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 don't think this works as a style. It is passed as a prop. Right? 😕
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.
You're right there are some platform specifics in implementation when I looked it up. I need to use the prop for it to 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. Thanks for the changes and patience.
All yours @deetergp @johnmlee101
No worries! thank you for your patience too! |
merged your changes @parasharrajat But it does introduce a contrast issue for accessibility. The label doesn't contrast enough against the background. |
Sorry, which changes are you referring to? My PR is yet to be merged and If it merged before yours then you will have some conflicts for sure 😈
We are not worried about A11y issues ATM but tracking them. Thanks for pointing it out. |
#4632 nvm! I didn't do a deep enough look. Just saw the screenshot on this was different to what I saw. |
Oh about that. We have moved away from that change. That PR was about fixing autofill logic not the UI. |
Looks like it is ok still. Can you re-review? |
@deetergp going to skip your review since this was a duplicate (to fix signed commits). just FYI! |
✋ 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 @johnmlee101 in version: 1.1.17-8 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.18-3 🚀
|
I am tagging this PR to highlight an issue fixed here. All conditions in ternary expressions or left-hand operands on conditional renders, should be boolean. This PR is one of the PRs that uses conditional render with string operands, hence I am tagging it here for the contributors to check. We've also updated the item in the checklist with this PR to avoid this issue in the future. |
New PR continued from here due to GPG signing issues:
#4746
Details
Added a toggle button icon to password fields to change visibility
Fixed Issues
$ #2734
QA Steps
Web and Desktop:
Android and iOS
Tested On
Screenshots
setpassword screen web:
https://user-images.githubusercontent.com/47184118/129957727-cff28fb8-f9f5-4d6c-9d69-cd469e2e74e7.mp4
Edge
note the lack of vendor specific show password functionality
Mobile Web
Desktop
Screen.Recording.2021-09-15.at.18.57.37.mov
iOS
Android