fix(label): change the flex for stacked and floating labels so buttons can be added

fixes #5319
This commit is contained in:
Brandy Carney
2016-03-04 13:08:55 -05:00
parent bc0699409e
commit 65ee86f168
2 changed files with 5 additions and 4 deletions

View File

@ -16,6 +16,7 @@
<ion-item> <ion-item>
<ion-label stacked>Label 2</ion-label> <ion-label stacked>Label 2</ion-label>
<ion-input value="Text 2"></ion-input> <ion-input value="Text 2"></ion-input>
<button item-right clear><ion-icon name="heart"></ion-icon></button>
</ion-item> </ion-item>
<ion-item> <ion-item>

View File

@ -34,10 +34,9 @@ ion-label[fixed] {
max-width: 200px; max-width: 200px;
} }
.item-label-stacked, .item-label-stacked .item-inner,
.item-label-floating { .item-label-floating .item-inner {
flex-direction: column; flex-wrap: wrap;
align-items: flex-start;
} }
ion-label[stacked], ion-label[stacked],
@ -45,6 +44,7 @@ ion-label[floating] {
align-self: stretch; align-self: stretch;
margin-bottom: 0; margin-bottom: 0;
max-width: 100%; max-width: 100%;
flex-basis: 100%;
} }
ion-label[stacked], ion-label[stacked],