Skip to content

Commit 1099dc3

Browse files
pwespibrandyscarney
authored andcommitted
fix(input): fix display of ion-input in narrow ion-item in Firefox (#16978)
* fix(input): fix display of ion-input in narrow ion-item in Firefox * Update index.html test(input): add narrow input test
1 parent c2fe917 commit 1099dc3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

core/src/components/input/input.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
flex: 1;
6868

6969
width: 100%;
70+
max-width: 100%;
7071
height: 100%;
7172

7273
border: 0;

core/src/components/input/test/basic/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@
118118
<ion-input clear-input value="reallylonglonglonginputtoseetheedgesreallylonglonglonginputtoseetheedges"></ion-input>
119119
</ion-item>
120120

121+
<ion-item style="max-width: 250px">
122+
<ion-input value="Narrow input"></ion-input>
123+
<ion-label text-right>Left</ion-label>
124+
</ion-item>
125+
126+
<ion-item style="max-width: 250px">
127+
<ion-label>Right</ion-label>
128+
<ion-input text-right value="Narrow input"></ion-input>
129+
</ion-item>
130+
121131
</ion-content>
122132

123133
<script>

0 commit comments

Comments
 (0)