Skip to content

Commit e4cc672

Browse files
committed
fix(input): fix the clear input button to always be vertically aligned
1 parent 4567de2 commit e4cc672

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

src/components/input/input.ios.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ ion-input[clearInput] {
7777
@include svg-background-image($text-input-ios-input-clear-icon-svg);
7878

7979
right: ($item-ios-padding-right / 2);
80-
bottom: 0;
8180

8281
width: $text-input-ios-input-clear-icon-width;
8382

src/components/input/input.md.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ ion-input[clearInput] {
130130
@include svg-background-image($text-input-md-input-clear-icon-svg);
131131

132132
right: ($item-md-padding-right / 2);
133-
bottom: 4px;
134133

135134
width: $text-input-md-input-clear-icon-width;
136135

src/components/input/input.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,14 @@ input.text-input:-webkit-autofill {
129129

130130
.text-input-clear-icon {
131131
position: absolute;
132+
top: 0;
132133
display: none;
133134

134135
margin: 0;
135136
padding: 0;
136137

138+
height: 100%;
139+
137140
background-repeat: no-repeat;
138141
background-position: center;
139142
}

src/components/input/input.wp.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ ion-input[clearInput] {
107107
.text-input-clear-icon {
108108
@include svg-background-image($text-input-wp-input-clear-icon-svg);
109109

110-
top: $item-wp-padding-top;
111110
right: ($item-wp-padding-right / 2);
112111

113112
width: $text-input-wp-input-clear-icon-width;
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
2-
it('should clear input', function() {
3-
element(by.css('.e2eClearInput .text-input-clear-icon')).click();
4-
});

0 commit comments

Comments
 (0)