Skip to content

Commit

Permalink
fix(input): only add padding right if it has clear input
Browse files Browse the repository at this point in the history
fixes #9865
  • Loading branch information
brandyscarney committed Jan 4, 2017
1 parent 14eb2fd commit 717cada
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/input/input.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/input/test/clear-input/app-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 5 additions & 0 deletions src/components/input/test/clear-input/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 717cada

Please sign in to comment.