Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(switch): correctly adjust when label will not fit on one line
Browse files Browse the repository at this point in the history
Closes #80
  • Loading branch information
ajoslin committed Sep 12, 2014
1 parent 95b0bcf commit e912a83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/radioButton/_radio-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
material-radio-button,
.material-switch-thumb { // Used in switch
display: block;
margin: 15px;
white-space: nowrap;
cursor: pointer;

Expand Down
3 changes: 2 additions & 1 deletion src/components/switch/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ material-switch {
outline: none;

.material-container {
position: absolute;
-webkit-transition: -webkit-transform 0.2s linear;
transition: transform 0.2s linear;
@include transform-translate3d(0,0,0);
Expand All @@ -38,7 +39,7 @@ material-switch {
border: 1px dotted black;
}
.material-label {
margin-left: $baseline-grid * 7;
margin-left: $baseline-grid * 9;
}
}
}

0 comments on commit e912a83

Please sign in to comment.