Skip to content

Commit 792c643

Browse files
committed
Removing default rightIcon right padding
1 parent c1c6fa5 commit 792c643

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/inputs/TextField.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const CHAR_COUNTER_COLOR_BY_STATE = {
4040

4141
const LABEL_TYPOGRAPHY = Typography.text80;
4242
const ICON_SIZE = 24;
43-
const ICON_RIGHT_PADDING = 3;
4443
const ICON_LEFT_PADDING = 6;
4544
const FLOATING_PLACEHOLDER_SCALE = 0.875;
4645

@@ -766,17 +765,17 @@ function createStyles({centered, multiline, expandable}) {
766765
height: LABEL_TYPOGRAPHY.lineHeight
767766
},
768767
rightElement: {
769-
paddingRight: ICON_SIZE + ICON_RIGHT_PADDING + ICON_LEFT_PADDING
768+
paddingRight: ICON_SIZE + ICON_LEFT_PADDING
770769
},
771770
rightIcon: {
772771
position: 'absolute',
773-
right: ICON_RIGHT_PADDING,
772+
right: 0,
774773
alignSelf: 'flex-end',
775774
paddingBottom: 8
776775
},
777776
rightButton: {
778777
position: 'absolute',
779-
right: ICON_RIGHT_PADDING,
778+
right: 0,
780779
alignSelf: 'center'
781780
},
782781
rightButtonImage: {

0 commit comments

Comments
 (0)