Skip to content

Commit 86a732c

Browse files
committed
Minor fix in TextField leading icon vertical alignment
1 parent 341c477 commit 86a732c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/inputs/TextField.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ export default class TextField extends BaseInput {
649649
{paddingTop: this.getTopPaddings()}
650650
]}
651651
>
652-
{leadingIcon && <Image {...leadingIcon}/>}
652+
{leadingIcon && <Image {...leadingIcon} style={[this.styles.leadingIcon, leadingIcon.style]}/>}
653653
{this.renderPrefix()}
654654
{this.renderPlaceholder()}
655655
{expandable ? this.renderExpandableInput() : this.renderTextInput()}
@@ -790,6 +790,9 @@ function createStyles({centered, multiline, hideUnderline}) {
790790
width: ICON_SIZE,
791791
height: ICON_SIZE
792792
},
793+
leadingIcon: {
794+
alignSelf: 'center'
795+
},
793796
accessibilityDummyErrorMessage: {
794797
position: 'absolute',
795798
bottom: 0,

0 commit comments

Comments
 (0)