mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(label): make all ion-labels stacked or floating stretch
closes #6134
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user