diff --git a/src/Components/Button/ButtonBase/ButtonBase.js b/src/Components/Button/ButtonBase/ButtonBase.js index 19b08fde..35db57c4 100644 --- a/src/Components/Button/ButtonBase/ButtonBase.js +++ b/src/Components/Button/ButtonBase/ButtonBase.js @@ -55,6 +55,7 @@ class ButtonBase extends Component { textStyle, typeTextColor, theme, + hideLabel, useInputCasing, } = this.props; @@ -65,7 +66,7 @@ class ButtonBase extends Component { style={[ theme.buttonText, { - color: typeTextColor, + color: hideLabel ? 'transparent' : typeTextColor, fontSize: theme.buttonText.fontSize, letterSpacing: theme.buttonText.letterSpacing, }, @@ -160,6 +161,7 @@ class ButtonBase extends Component { alignItems: 'center', justifyContent: 'center', flexDirection: hideLabel ? 'column' : 'row', + padding: hideLabel ? 18 : 0, width: fullWidth ? '100%' : 'auto', minWidth: 64, height: densityHeight, diff --git a/src/Components/Button/ContainedButton/ContainedButton.stories.js b/src/Components/Button/ContainedButton/ContainedButton.stories.js index 798d85a4..47731dca 100644 --- a/src/Components/Button/ContainedButton/ContainedButton.stories.js +++ b/src/Components/Button/ContainedButton/ContainedButton.stories.js @@ -108,7 +108,7 @@ export default storiesOf('Components|Buttons/Contained Button', module)