Преглед изворни кода

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 пре 7 година
родитељ
комит
66497c9c48
1 измењених фајлова са 1 додато и 1 уклоњено
  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`
 const Input = styled.input`
   width: ${props => getInputWidth(props)};
   width: ${props => getInputWidth(props)};
   height: ${props => props.height || `${StyleProps.inputSizes.regular.height}px`};
   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};
   border-radius: ${StyleProps.borderRadius};
   background-color: #FFF;
   background-color: #FFF;
   border: ${props => props.embedded ? 0 : css`1px solid ${props => borderColor(props)}`};
   border: ${props => props.embedded ? 0 : css`1px solid ${props => borderColor(props)}`};