mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(input): fix the clear input button to always be vertically aligned
This commit is contained in:
@@ -77,7 +77,6 @@ ion-input[clearInput] {
|
||||
@include svg-background-image($text-input-ios-input-clear-icon-svg);
|
||||
|
||||
right: ($item-ios-padding-right / 2);
|
||||
bottom: 0;
|
||||
|
||||
width: $text-input-ios-input-clear-icon-width;
|
||||
|
||||
|
||||
@@ -130,7 +130,6 @@ ion-input[clearInput] {
|
||||
@include svg-background-image($text-input-md-input-clear-icon-svg);
|
||||
|
||||
right: ($item-md-padding-right / 2);
|
||||
bottom: 4px;
|
||||
|
||||
width: $text-input-md-input-clear-icon-width;
|
||||
|
||||
|
||||
@@ -129,11 +129,14 @@ input.text-input:-webkit-autofill {
|
||||
|
||||
.text-input-clear-icon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
display: none;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
height: 100%;
|
||||
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
@@ -107,7 +107,6 @@ ion-input[clearInput] {
|
||||
.text-input-clear-icon {
|
||||
@include svg-background-image($text-input-wp-input-clear-icon-svg);
|
||||
|
||||
top: $item-wp-padding-top;
|
||||
right: ($item-wp-padding-right / 2);
|
||||
|
||||
width: $text-input-wp-input-clear-icon-width;
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
it('should clear input', function() {
|
||||
element(by.css('.e2eClearInput .text-input-clear-icon')).click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user