From 5eccb3dd0c4525e21c31d23df972f2305b0b8b57 Mon Sep 17 00:00:00 2001 From: Mikkel Laursen Date: Tue, 20 Dec 2016 10:54:09 -0700 Subject: [PATCH] Password TextField Positioning Bugfix #192 Updated the Password TextField to use the top positioning instead of a bottom positioning since the top will always be a static size as compared to the bottom which can include multiline messages and counters and other stuff. --- src/js/TextFields/PasswordButton.js | 14 +++++++- src/js/TextFields/TextField.js | 3 ++ src/scss/components/_text-fields.scss | 52 ++++++++++++++++++--------- 3 files changed, 51 insertions(+), 18 deletions(-) diff --git a/src/js/TextFields/PasswordButton.js b/src/js/TextFields/PasswordButton.js index 4d85eaa510..603683b587 100644 --- a/src/js/TextFields/PasswordButton.js +++ b/src/js/TextFields/PasswordButton.js @@ -12,6 +12,8 @@ export default class PasswordButton extends PureComponent { iconChildren: PropTypes.node, onKeyUp: PropTypes.func, onKeyDown: PropTypes.func, + block: PropTypes.bool, + floating: PropTypes.bool, }; constructor(props) { @@ -62,7 +64,15 @@ export default class PasswordButton extends PureComponent { render() { const { keyboardFocus } = this.state; - const { active, passwordVisible, iconClassName, iconChildren, ...props } = this.props; + const { + active, + passwordVisible, + iconClassName, + iconChildren, + block, + floating, + ...props + } = this.props; return (