Skip to content

Commit 4d7ffaa

Browse files
authored
fix(material-experimental/slide-toggle): allow different densities (#18895)
1 parent e311791 commit 4d7ffaa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/material-experimental/mdc-slide-toggle/slide-toggle.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[matRippleTrigger]="switch"
88
[matRippleDisabled]="disableRipple || disabled"
99
[matRippleCentered]="true"
10-
[matRippleRadius]="24"
1110
[matRippleAnimation]="_rippleAnimation"></div>
1211
<div class="mdc-switch__thumb">
1312
<input #input class="mdc-switch__native-control" type="checkbox"

src/material-experimental/mdc-slide-toggle/slide-toggle.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
opacity: map-get($mdc-ripple-dark-ink-opacities, press);
4949
}
5050

51+
.mat-ripple {
52+
border-radius: 50%;
53+
}
54+
5155
// Angular Material supports disabling all animations when NoopAnimationsModule is imported.
5256
// TODO(mmalerba): Look into using MDC's Sass queries to separate the animation styles and
5357
// conditionally add them. Consider the size cost when deciding whether to switch.

0 commit comments

Comments
 (0)