Skip to content

Commit 65ee86f

Browse files
committed
fix(label): change the flex for stacked and floating labels so buttons can be added
fixes #5319
1 parent bc06994 commit 65ee86f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ionic/components/input/test/stacked-labels/main.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<ion-item>
1717
<ion-label stacked>Label 2</ion-label>
1818
<ion-input value="Text 2"></ion-input>
19+
<button item-right clear><ion-icon name="heart"></ion-icon></button>
1920
</ion-item>
2021

2122
<ion-item>

ionic/components/label/label.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ ion-label[fixed] {
3434
max-width: 200px;
3535
}
3636

37-
.item-label-stacked,
38-
.item-label-floating {
39-
flex-direction: column;
40-
align-items: flex-start;
37+
.item-label-stacked .item-inner,
38+
.item-label-floating .item-inner {
39+
flex-wrap: wrap;
4140
}
4241

4342
ion-label[stacked],
4443
ion-label[floating] {
4544
align-self: stretch;
4645
margin-bottom: 0;
4746
max-width: 100%;
47+
flex-basis: 100%;
4848
}
4949

5050
ion-label[stacked],

0 commit comments

Comments
 (0)