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

Fix Extra padding-right in the 3 password fields #729

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/components/Auth/ChangePassword/ChangePassword.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import RaisedButton from 'material-ui/RaisedButton';
import $ from 'jquery';
import './ChangePassword.css';
import PropTypes from 'prop-types';
import PasswordField from 'material-ui-password-field';
import TextField from 'material-ui/TextField';
import Cookies from 'universal-cookie';
import injectTapEventPlugin from 'react-tap-event-plugin';
import ForgotPassword from '../ForgotPassword/ForgotPassword.react';
Expand Down Expand Up @@ -200,7 +200,7 @@ export default class ChangePassword extends Component {
<form onSubmit={this.handleSubmit}>
<div style={labelStyle}>Current Password</div>
<div>
<PasswordField
<TextField
name="currentPassword"
style={fieldStyle}
value={this.state.currentPassword}
Expand All @@ -211,12 +211,13 @@ export default class ChangePassword extends Component {
disableButton={true}
visibilityButtonStyle={{ display: 'none' }}
visibilityIconStyle={{ display: 'none' }}
type="password"
/>
</div>
<br />
<div style={labelStyle}>New Password</div>
<div className={PasswordClass.join(' ')}>
<PasswordField
<TextField
name="newPassword"
placeholder="Must be from 6 to 64 characters"
style={fieldStyle}
Expand All @@ -228,20 +229,18 @@ export default class ChangePassword extends Component {
disableButton={true}
visibilityButtonStyle={{ display: 'none' }}
visibilityIconStyle={{ display: 'none' }}
type="password"
/>

<div className="ReactPasswordStrength-strength-bar" />

<div className="is-strength-name">
{this.state.newPasswordStrength}
</div>
</div>
<br />
<div>
<div style={labelStyle}>Verify Password</div>

<div>
<PasswordField
<TextField
name="confirmPassword"
placeholder="Must match the new password"
style={fieldStyle}
Expand All @@ -253,6 +252,7 @@ export default class ChangePassword extends Component {
disableButton={true}
visibilityButtonStyle={{ display: 'none' }}
visibilityIconStyle={{ display: 'none' }}
type="password"
/>
</div>
</div>
Expand Down