From 99b55bfe9d4922c0f1ccd1e0e62eb86f2d2f45d9 Mon Sep 17 00:00:00 2001 From: Prashant Mangukiya Date: Fri, 27 Aug 2021 17:07:49 +0530 Subject: [PATCH] Fix Placeholders not vertically centered in text inputs Corrected problem as mentioned in issue #4675 --- src/components/ExpensiTextInput/BaseExpensiTextInput.js | 2 +- src/styles/styles.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ExpensiTextInput/BaseExpensiTextInput.js b/src/components/ExpensiTextInput/BaseExpensiTextInput.js index a73237f78ae3..e955e37a012d 100644 --- a/src/components/ExpensiTextInput/BaseExpensiTextInput.js +++ b/src/components/ExpensiTextInput/BaseExpensiTextInput.js @@ -9,7 +9,7 @@ import {propTypes, defaultProps} from './propTypes'; import themeColors from '../../styles/themes/default'; import styles from '../../styles/styles'; -const ACTIVE_LABEL_TRANSLATE_Y = -10; +const ACTIVE_LABEL_TRANSLATE_Y = -12; const ACTIVE_LABEL_TRANSLATE_X = (translateX = -22) => translateX; const ACTIVE_LABEL_SCALE = 0.8668; diff --git a/src/styles/styles.js b/src/styles/styles.js index 4608aeaeead6..ef186094bf74 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -528,7 +528,7 @@ const styles = { expensiTextInputLabel: { position: 'absolute', left: 12, - top: 14, + top: 16, fontSize: variables.fontSizeNormal, color: themeColors.textSupporting, fontFamily: fontFamily.GTA,