Skip to content

Commit

Permalink
fix(range): ion-label stacked with ion-range
Browse files Browse the repository at this point in the history
fixes #7046
  • Loading branch information
manucorporat committed Jun 25, 2016
1 parent d0b1930 commit 2b586c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/components/label/label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,16 @@ ion-label[fixed] {
max-width: 200px;
}

.item-label-stacked ion-label,
.item-label-floating ion-label {
ion-label[stacked],
ion-label[floating] {
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;
Expand Down
2 changes: 1 addition & 1 deletion src/components/range/test/basic/page1.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ion-item>

<ion-item>
<ion-label>init=150, min=-200, max=200</ion-label>
<ion-label stacked>init=150, min=-200, max=200</ion-label>
<ion-range min="-200" max="200" [(ngModel)]="singleValue2" secondary>
<ion-label range-left>-200</ion-label>
<ion-label range-right>200</ion-label>
Expand Down

0 comments on commit 2b586c7

Please sign in to comment.