Explorar el Código

Fix `line-height` issues for `TextInput`

The line height issues were mostly visible on Safari. The input cursor's
height was inconsistent when focusing or typing in a text input.
Sergiu Miclea hace 7 años
padre
commit
66497c9c48
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/atoms/TextInput/TextInput.jsx

+ 1 - 1
src/components/atoms/TextInput/TextInput.jsx

@@ -39,7 +39,7 @@ const borderColor = (props, defaultColor = Palette.grayscale[3]) => props.highli
 const Input = styled.input`
   width: ${props => getInputWidth(props)};
   height: ${props => props.height || `${StyleProps.inputSizes.regular.height}px`};
-  line-height: ${props => props.lineHeight || `${StyleProps.inputSizes.regular.height}px`};
+  line-height: ${props => props.lineHeight || 'normal'};
   border-radius: ${StyleProps.borderRadius};
   background-color: #FFF;
   border: ${props => props.embedded ? 0 : css`1px solid ${props => borderColor(props)}`};