Skip to content

Commit

Permalink
fix(material-experimental/slide-toggle): allow different densities (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin committed Mar 23, 2020
1 parent e311791 commit 4d7ffaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -7,7 +7,6 @@
[matRippleTrigger]="switch"
[matRippleDisabled]="disableRipple || disabled"
[matRippleCentered]="true"
[matRippleRadius]="24"
[matRippleAnimation]="_rippleAnimation"></div>
<div class="mdc-switch__thumb">
<input #input class="mdc-switch__native-control" type="checkbox"
Expand Down
4 changes: 4 additions & 0 deletions src/material-experimental/mdc-slide-toggle/slide-toggle.scss
Expand Up @@ -48,6 +48,10 @@
opacity: map-get($mdc-ripple-dark-ink-opacities, press);
}

.mat-ripple {
border-radius: 50%;
}

// Angular Material supports disabling all animations when NoopAnimationsModule is imported.
// TODO(mmalerba): Look into using MDC's Sass queries to separate the animation styles and
// conditionally add them. Consider the size cost when deciding whether to switch.
Expand Down

0 comments on commit 4d7ffaa

Please sign in to comment.