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 d30f1ceCopy full SHA for d30f1ce
src/material/chips/_chips-theme.scss
@@ -19,7 +19,14 @@ $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-color: mat-color($palette, default-contrast);
23
+ background-color: $ripple-color;
24
+
25
+ // If the ripple color is a CSS variable, `mat-color` will
26
+ // return a solid color so we have to apply the opacity separately.
27
+ @if (type-of($ripple-color) != color) {
28
+ opacity: 0.1;
29
+ }
30
}
31
32
0 commit comments