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

Fix text input's value misalignment

The text input's value should now be better aligned.
Sergiu Miclea 8 лет назад
Родитель
Сommit
4a9f6bcc50
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/components/atoms/TextInput/TextInput.jsx

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

@@ -37,6 +37,7 @@ const getInputWidth = props => {
 const Input = styled.input`
   width: ${props => getInputWidth(props)};
   height: ${StyleProps.inputSizes.regular.height}px;
+  line-height: ${StyleProps.inputSizes.regular.height}px;
   border-radius: ${StyleProps.borderRadius};
   background-color: #FFF;
   border: 1px solid ${props => props.highlight ? Palette.alert : Palette.grayscale[3]};