fix(label): make all ion-labels stacked or floating stretch

closes #6134
This commit is contained in:
Brandy Carney
2016-05-19 19:32:18 -04:00
parent 2b836a930f
commit b742e1f0da
2 changed files with 12 additions and 4 deletions

View File

@@ -35,6 +35,11 @@
<ion-input value="http://url5.com/" type="url"></ion-input>
</ion-item>
<ion-item>
<ion-label stacked>Stacked Label</ion-label>
<ion-label>Double Label</ion-label>
</ion-item>
<ion-item>
<ion-label stacked>Label 6</ion-label>
<ion-select [(ngModel)]="gender">

View File

@@ -40,16 +40,19 @@ ion-label[fixed] {
max-width: 200px;
}
ion-label[stacked],
ion-label[floating] {
.item-label-stacked ion-label,
.item-label-floating ion-label {
align-self: stretch;
margin-bottom: 0;
width: auto;
max-width: 100%;
}
ion-label[stacked],
ion-label[floating] {
margin-bottom: 0;
}
.item-label-stacked .input-wrapper,
.item-label-floating .input-wrapper {
flex: 1;