|
30 | 30 | .mat-mdc-mini-fab:not(:disabled) { |
31 | 31 | &.mat-primary { |
32 | 32 | --mdc-fab-container-color: #{$primary}; |
33 | | - --mdc-fab-icon-color: #{$primary-contrast}; |
34 | | - --mat-mdc-fab-color: #{$primary-contrast}; |
| 33 | + --mat-fab-foreground-color: #{$primary-contrast}; |
| 34 | + --mat-fab-state-layer-color: #{$primary-contrast}; |
35 | 35 | } |
36 | 36 | &.mat-accent { |
37 | 37 | --mdc-fab-container-color: #{$accent}; |
38 | | - --mdc-fab-icon-color: #{$accent-contrast}; |
39 | | - --mat-mdc-fab-color: #{$accent-contrast}; |
| 38 | + --mat-fab-foreground-color: #{$accent-contrast}; |
| 39 | + --mat-fab-state-layer-color: #{$accent-contrast}; |
40 | 40 | } |
41 | 41 | &.mat-warn { |
42 | 42 | --mdc-fab-container-color: #{$warn}; |
43 | | - --mdc-fab-icon-color: #{$warn-contrast}; |
44 | | - --mat-mdc-fab-color: #{$warn-contrast}; |
| 43 | + --mat-fab-foreground-color: #{$warn-contrast}; |
| 44 | + --mat-fab-state-layer-color: #{$warn-contrast}; |
45 | 45 | } |
46 | 46 | } |
47 | 47 | } |
|
53 | 53 | $color-primary: public-util.mat-css-color(500, null, "primary", true); |
54 | 54 | $color-accent: public-util.mat-css-color(500, null, "accent", true); |
55 | 55 | $color-warn: public-util.mat-css-color(500, null, "warn", true); |
| 56 | + $color-primary-ripple: public-util.mat-css-color(500, 0.1, "primary"); |
| 57 | + $color-accent-ripple: public-util.mat-css-color(500, 0.1, "accent"); |
| 58 | + $color-warn-ripple: public-util.mat-css-color(500, 0.1, "warn"); |
56 | 59 |
|
57 | | - .mat-mdc-button, |
58 | | - .mat-mdc-outlined-button, |
59 | 60 | .mat-mdc-icon-button { |
60 | | - &.mat-primary { |
61 | | - --mat-mdc-button-ripple-color: #{public-util.mat-css-color( |
62 | | - 500, |
63 | | - 0.1, |
64 | | - "primary" |
65 | | - )}; |
| 61 | + &, |
| 62 | + #{variables.$dark-theme-selector} & { |
| 63 | + &.mat-primary { |
| 64 | + --mat-icon-button-ripple-color: #{$color-primary-ripple}; |
| 65 | + } |
| 66 | + &.mat-accent { |
| 67 | + --mat-icon-button-ripple-color: #{$color-accent-ripple}; |
| 68 | + } |
| 69 | + &.mat-warn { |
| 70 | + --mat-icon-button-ripple-color: #{$color-warn-ripple}; |
| 71 | + } |
66 | 72 | } |
67 | | - &.mat-accent { |
68 | | - --mat-mdc-button-ripple-color: #{public-util.mat-css-color( |
69 | | - 500, |
70 | | - 0.1, |
71 | | - "accent" |
72 | | - )}; |
| 73 | + } |
| 74 | + |
| 75 | + .mat-mdc-button { |
| 76 | + &, |
| 77 | + #{variables.$dark-theme-selector} & { |
| 78 | + &.mat-primary { |
| 79 | + --mat-text-button-ripple-color: #{$color-primary-ripple}; |
| 80 | + } |
| 81 | + |
| 82 | + &.mat-accent { |
| 83 | + --mat-text-button-ripple-color: #{$color-accent-ripple}; |
| 84 | + } |
| 85 | + |
| 86 | + &.mat-warn { |
| 87 | + --mat-text-button-ripple-color: #{$color-warn-ripple}; |
| 88 | + } |
73 | 89 | } |
74 | | - &.mat-warn { |
75 | | - --mat-mdc-button-ripple-color: #{public-util.mat-css-color( |
76 | | - 500, |
77 | | - 0.1, |
78 | | - "warn" |
79 | | - )}; |
| 90 | + } |
| 91 | + |
| 92 | + .mat-mdc-outlined-button { |
| 93 | + &, |
| 94 | + #{variables.$dark-theme-selector} & { |
| 95 | + &.mat-primary { |
| 96 | + --mat-outlined-button-ripple-color: #{$color-primary-ripple}; |
| 97 | + } |
| 98 | + |
| 99 | + &.mat-accent { |
| 100 | + --mat-outlined-button-ripple-color: #{$color-accent-ripple}; |
| 101 | + } |
| 102 | + |
| 103 | + &.mat-warn { |
| 104 | + --mat-outlined-button-ripple-color: #{$color-warn-ripple}; |
| 105 | + } |
80 | 106 | } |
81 | 107 | } |
| 108 | + |
82 | 109 | .mat-mdc-unelevated-button:not(:disabled), |
83 | 110 | .mat-mdc-raised-button:not(:disabled) { |
84 | 111 | &.mat-primary { |
|
0 commit comments