Skip to content

Commit 717cada

Browse files
committed
fix(input): only add padding right if it has clear input
fixes #9865
1 parent 14eb2fd commit 717cada

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/components/input/input.ios.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $text-input-ios-highlight-color-invalid: $text-input-highlight-color-invalid !
159159
position: relative;
160160
}
161161

162-
.input-ios .text-input {
162+
.input-ios[clearInput] .text-input {
163163
padding-right: $text-input-ios-input-clear-icon-width;
164164
}
165165

src/components/input/test/clear-input/app-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { IonicApp, IonicModule } from '../../../..';
66
templateUrl: 'main.html'
77
})
88
export class E2EPage {
9-
myValue = 'value';
9+
myValue = 'really long value that overflows to show padding';
1010

1111
clicked() {
1212
console.log('clicked button');

src/components/input/test/clear-input/main.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
<ion-list>
1313

14+
<ion-item>
15+
<ion-label>No Input Clear:</ion-label>
16+
<ion-input class="e2eClearInput" [(ngModel)]="myValue"></ion-input>
17+
</ion-item>
18+
1419
<ion-item>
1520
<ion-label>Input Clear:</ion-label>
1621
<ion-input class="e2eClearInput" [(ngModel)]="myValue" clearInput></ion-input>

0 commit comments

Comments
 (0)