Просмотр исходного кода

Merge pull request #343 from smiclea/CORWEB-193

Fix `line-height` issues for `TextInput` CORWEB-193
Dorin Paslaru 7 лет назад
Родитель
Сommit
270380c02a
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`
   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)}`};