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 d3d8859 commit dde0310Copy full SHA for dde0310
src/material/chips/_chips-theme.scss
@@ -19,7 +19,15 @@ $mat-chip-remove-font-size: 18px;
19
@include mat-chips-color(mat-color($palette, default-contrast), mat-color($palette));
20
21
.mat-ripple-element {
22
- background: mat-color($palette, default-contrast, 0.1);
+ $ripple-opacity: 0.1;
23
+ $ripple-color: mat-color($palette, default-contrast, $ripple-opacity);
24
+ background-color: $ripple-color;
25
+
26
+ // If the ripple color is a CSS variable, `mat-color` will
27
+ // return a solid color so we have to apply the opacity separately.
28
+ @if (type-of($ripple-color) != color) {
29
+ opacity: $ripple-opacity;
30
+ }
31
}
32
33
0 commit comments