mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(label): remove margin from item-right in a stacked or floating label
references #5319
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
<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>
|
||||
<button item-right clear><ion-icon name="heart-outline"></ion-icon></button>
|
||||
<button item-right clear><ion-icon ios="ios-call-outline" md="md-call"></ion-icon></button>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
|
||||
@@ -39,6 +39,12 @@ ion-label[fixed] {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.item-label-stacked [item-right],
|
||||
.item-label-floating [item-right] {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
ion-label[stacked],
|
||||
ion-label[floating] {
|
||||
align-self: stretch;
|
||||
|
||||
Reference in New Issue
Block a user