|
29 | 29 | @include mdc-chip-fill-color-accessible($unselected-background,
|
30 | 30 | $query: $mat-theme-styles-query);
|
31 | 31 |
|
| 32 | + // mdc-chip-fill-color-accessible includes mdc-chip-selected-ink-color which overrides the opacity |
| 33 | + // so selected chips always show a ripple. |
| 34 | + // Include the same mixins but use mdc-chip-selected-ink-color-without-ripple |
32 | 35 | &.mat-primary {
|
33 | 36 | &.mdc-chip--selected, &.mat-mdc-chip-highlighted {
|
34 |
| - @include mdc-chip-fill-color-accessible($primary, $query: $mat-theme-styles-query); |
| 37 | + @include mdc-chip-fill-color($primary, $query: $mat-theme-styles-query); |
| 38 | + @include mdc-chip-ink-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 39 | + @include mdc-chip-selected-ink-color-without-ripple_(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 40 | + @include mdc-chip-leading-icon-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 41 | + @include mdc-chip-trailing-icon-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
35 | 42 | }
|
36 | 43 | }
|
37 | 44 |
|
38 | 45 | &.mat-accent {
|
39 | 46 | &.mdc-chip--selected, &.mat-mdc-chip-highlighted {
|
40 |
| - @include mdc-chip-fill-color-accessible($accent, $query: $mat-theme-styles-query); |
| 47 | + @include mdc-chip-fill-color($accent, $query: $mat-theme-styles-query); |
| 48 | + @include mdc-chip-ink-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 49 | + @include mdc-chip-selected-ink-color-without-ripple_(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 50 | + @include mdc-chip-leading-icon-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 51 | + @include mdc-chip-trailing-icon-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
41 | 52 | }
|
42 | 53 | }
|
43 | 54 |
|
44 | 55 | &.mat-warn {
|
45 | 56 | &.mdc-chip--selected, &.mat-mdc-chip-highlighted {
|
46 |
| - @include mdc-chip-fill-color-accessible($warn, $query: $mat-theme-styles-query); |
| 57 | + @include mdc-chip-fill-color($warn, $query: $mat-theme-styles-query); |
| 58 | + @include mdc-chip-ink-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 59 | + @include mdc-chip-selected-ink-color-without-ripple_(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 60 | + @include mdc-chip-leading-icon-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
| 61 | + @include mdc-chip-trailing-icon-color(text-primary-on-dark, $query: $mat-theme-styles-query); |
47 | 62 | }
|
48 | 63 | }
|
49 | 64 | }
|
|
0 commit comments