File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/material-experimental/mdc-slide-toggle Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 84
84
}
85
85
}
86
86
87
- @mixin mat-mdc-slide-toggle-density ($density-scale ) {}
87
+ @mixin mat-mdc-slide-toggle-density ($density-scale ) {
88
+ .mat-mdc-slide-toggle .mdc-switch {
89
+ @include mdc-switch-density ($density-scale );
90
+ }
91
+ }
88
92
89
93
@mixin mat-mdc-slide-toggle-theme ($theme ) {
90
94
$color : mat-get-color-config ($theme );
Original file line number Diff line number Diff line change 16
16
// The ripple needs extra specificity so the base ripple styling doesn't override its `position`.
17
17
.mat-mdc-slide-toggle-ripple , .mdc-switch__thumb-underlay ::after {
18
18
@include mat-fill ;
19
-
19
+ border-radius : 50 % ;
20
20
// Disable pointer events for the ripple container so that it doesn't eat the mouse events meant
21
21
// for the input. Pointer events can be safely disabled because the ripple trigger element is
22
22
// the host element.
23
23
pointer-events : none ;
24
+ // Fixes the ripples not clipping to the border radius on Safari. Uses `:not(:empty)`
25
+ // in order to avoid creating extra layers when there aren't any ripples.
26
+ & :not (:empty ) {
27
+ transform : translateZ (0 );
28
+ }
24
29
}
25
30
26
31
// The MDC switch styles related to the hover state are intertwined with the MDC ripple styles.
You can’t perform that action at this time.
0 commit comments