Skip to content

Commit

Permalink
fix(label): remove margin from item-right in a stacked or floating label
Browse files Browse the repository at this point in the history
references #5319
  • Loading branch information
brandyscarney committed Mar 4, 2016
1 parent 65ee86f commit 7416827
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ionic/components/input/test/stacked-labels/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 6 additions & 0 deletions ionic/components/label/label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7416827

Please sign in to comment.