Skip to content
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

Hide password strength message when the password is valid #1382

Merged
merged 2 commits into from
May 28, 2018

Conversation

luisrudge
Copy link
Contributor

@luisrudge luisrudge commented May 25, 2018

fix #1381

pre:
image

post:
image

@@ -104,6 +107,27 @@ exports[`PasswordPane sets isValid as true when \`isFieldVisiblyInvalid\` is fal
data-placeholder="placeholder"
data-policy="policy"
data-showPassword="showPassword"
data-showPasswordStrenghtMessage={false}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property has a typo: Strenght -> Strength

@@ -60,6 +61,12 @@ describe('PasswordPane', () => {

expectComponent(<PasswordPane {...defaultProps} />).toMatchSnapshot();
});
it('sets showPasswordStrenghtMessage as true when `isFieldValid` is false', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the opposite case?

@luisrudge luisrudge force-pushed the fix-password-strenght-message branch from ce1c8ad to 3f46992 Compare May 28, 2018 20:18
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@luisrudge luisrudge merged commit 3968940 into master May 28, 2018
@luisrudge luisrudge deleted the fix-password-strenght-message branch May 28, 2018 20:23
@luisrudge luisrudge added this to the v11.7.0 milestone May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Password Tooltip whitespace on mobile
2 participants