Skip to content

Commit

Permalink
Merge pull request #5704 from AlfredoAlc/alfredo-fix-textinput-area
Browse files Browse the repository at this point in the history
Change style for TextInput area
  • Loading branch information
Tim Szot committed Oct 12, 2021
2 parents 24cc6ff + 57dde06 commit 50beee9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/ExpensiTextInput/BaseExpensiTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ class BaseExpensiTextInput extends Component {
<View
style={[
styles.expensiTextInputContainer,
!hasLabel && styles.pv0,
this.state.isFocused && styles.borderColorFocus,
(hasError || errorText) && styles.borderColorDanger,
]}
Expand Down Expand Up @@ -194,7 +193,7 @@ class BaseExpensiTextInput extends Component {
placeholder={(this.state.isFocused || !label) ? placeholder : null}
placeholderTextColor={themeColors.placeholderText}
underlineColorAndroid="transparent"
style={inputStyle}
style={[inputStyle, !hasLabel && styles.pv0]}
multiline={multiline}
onFocus={this.onFocus}
onBlur={this.onBlur}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const ExpensiTextInputLabel = ({
labelScale,
),
]}
selectable={false}
>
{label}
</Animated.Text>
Expand Down
7 changes: 4 additions & 3 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,6 @@ const styles = {
borderWidth: 1,
borderRadius: variables.componentBorderRadiusNormal,
borderColor: themeColors.border,
paddingTop: 25,
paddingBottom: 8,
paddingHorizontal: 11.5,
justifyContent: 'center',
height: '100%',
backgroundColor: themeColors.componentBG,
Expand All @@ -520,6 +517,7 @@ const styles = {
color: themeColors.textSupporting,
fontFamily: fontFamily.GTA,
width: '100%',
zIndex: -1,
},
expensiTextInputLabelDesktop: {
transformOrigin: 'left center',
Expand All @@ -536,6 +534,9 @@ const styles = {
fontSize: variables.fontSizeNormal,
color: themeColors.text,
...spacing.pv0,
paddingTop: 25,
paddingBottom: 8,
paddingHorizontal: 11.5,
},
expensiTextInputDesktop: addOutlineWidth({}, 0),
expensiTextInputAndroid: left => ({
Expand Down

0 comments on commit 50beee9

Please sign in to comment.