fix(slide-toggle): thumb spacing at end for rtl (#1659)

* Ensure that the `md-slide-toggle` always shows the spacing at the end of the `thumb` container.
This commit is contained in:
Paul Gschwendtner
2016-11-01 22:07:47 +01:00
committed by Hans
parent 8220452f77
commit ad3100e8e5
+7 -1
View File
@@ -8,6 +8,7 @@ $md-slide-toggle-height: 24px !default;
$md-slide-toggle-bar-height: 14px !default;
$md-slide-toggle-thumb-size: 20px !default;
$md-slide-toggle-margin: 16px !default;
$md-slide-toggle-spacing: 8px !default;
@mixin md-switch-ripple() {
@@ -72,7 +73,12 @@ md-slide-toggle {
position: relative;
margin-right: 8px;
margin-right: $md-slide-toggle-spacing;
[dir='rtl'] & {
margin-left: $md-slide-toggle-spacing;
margin-right: 0;
}
}
// The thumb container is responsible for the dragging functionality.