fix(input): only add padding right if it has clear input

fixes #9865
This commit is contained in:
Brandy Carney
2017-01-04 13:28:25 -05:00
parent 14eb2fde1d
commit 717cada8ed
3 changed files with 7 additions and 2 deletions

View File

@ -159,7 +159,7 @@ $text-input-ios-highlight-color-invalid: $text-input-highlight-color-invalid !
position: relative;
}
.input-ios .text-input {
.input-ios[clearInput] .text-input {
padding-right: $text-input-ios-input-clear-icon-width;
}

View File

@ -6,7 +6,7 @@ import { IonicApp, IonicModule } from '../../../..';
templateUrl: 'main.html'
})
export class E2EPage {
myValue = 'value';
myValue = 'really long value that overflows to show padding';
clicked() {
console.log('clicked button');

View File

@ -11,6 +11,11 @@
<ion-list>
<ion-item>
<ion-label>No Input Clear:</ion-label>
<ion-input class="e2eClearInput" [(ngModel)]="myValue"></ion-input>
</ion-item>
<ion-item>
<ion-label>Input Clear:</ion-label>
<ion-input class="e2eClearInput" [(ngModel)]="myValue" clearInput></ion-input>