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-label stacked>Label 2</ion-label>
<ion-input value="Text 2"></ion-input>
<button item-right clear><ion-icon name="heart"></ion-icon></button>
</ion-item>
<ion-item>

View File

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