diff --git a/src/Form/Input.js b/src/Form/Input.js index de31d2e..f2956ca 100644 --- a/src/Form/Input.js +++ b/src/Form/Input.js @@ -241,7 +241,7 @@ class Input extends Component { ...rest } = this.props; - const isFloating = (floating && value && value.length > 0) || (floating && this.state.value); + const isFloating = floating && value != undefined && `${value}`.trim(); const inputProps = { ...rest, diff --git a/src/Form/Label.js b/src/Form/Label.js index abf925c..f06541d 100644 --- a/src/Form/Label.js +++ b/src/Form/Label.js @@ -9,7 +9,6 @@ const Label = createComponent({ transition: 250ms; font-weight: 500; margin: 0 0 4px 4px; - z-index: 10; font-size: ${p => p.theme.fontSizes[p.size]}px; ${isFloatable &&