We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9466a4 commit 31f0483Copy full SHA for 31f0483
src/lib/core/ripple/_ripple.scss
@@ -10,12 +10,18 @@ $mat-ripple-color-opacity: 0.1;
10
.mat-ripple {
11
overflow: hidden;
12
13
+ // Limit style recalculations to the ripple container, as much as possible.
14
+ contain: strict;
15
+
16
// By default, every ripple container should have position: relative in favor of creating an
17
// easy API for developers using the MatRipple directive.
18
position: relative;
19
}
20
21
.mat-ripple.mat-ripple-unbounded {
22
+ // For unbounded ripples we can't contain `paint`,
23
+ // because it stops `overflow` from working.
24
+ contain: size layout style;
25
overflow: visible;
26
27
0 commit comments