-
Notifications
You must be signed in to change notification settings - Fork 557
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
Show the "Can't be blank" message under the password input #1882
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,8 @@ export default class InputWrap extends React.Component { | |
<div className={wrapClassName}> | ||
{iconElement} | ||
{this.props.children} | ||
{after} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The component |
||
</div> | ||
{after} | ||
{errorTooltip} | ||
</div> | ||
); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ export default class PasswordInput extends React.Component { | |
<InputWrap | ||
after={passwordStrength} | ||
focused={focused} | ||
invalidHint={policy ? undefined : invalidHint} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My assumption is that this logic was added because we didn't want to reposition the password strength tooltip if there was an invalid hint. |
||
invalidHint={invalidHint} | ||
isValid={isValid} | ||
name="password" | ||
icon={icon} | ||
|
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.
Now the password strength field is position relative to the password input, we have to add left 0 to take the padding for the icon into account (other wise the password strength tooltip would be 40px to the right)