|
1 | 1 | @import '../core/theming/theming'; |
2 | 2 |
|
3 | | - |
4 | 3 | // Applies a focus style to an md-button element for each of the supported palettes. |
5 | 4 | @mixin _mat-button-focus-color($theme) { |
6 | 5 | $primary: map-get($theme, primary); |
|
20 | 19 | } |
21 | 20 | } |
22 | 21 |
|
| 22 | +@mixin _mat-button-ripple-color($theme) { |
| 23 | + $primary: map-get($theme, primary); |
| 24 | + $accent: map-get($theme, accent); |
| 25 | + $warn: map-get($theme, warn); |
| 26 | + |
| 27 | + &.mat-primary .mat-ripple-element { |
| 28 | + background-color: mat-color($primary, 0.26); |
| 29 | + } |
| 30 | + |
| 31 | + &.mat-accent .mat-ripple-element { |
| 32 | + background-color: mat-color($accent, 0.26); |
| 33 | + } |
| 34 | + |
| 35 | + &.mat-warn .mat-ripple-element { |
| 36 | + background-color: mat-color($warn, 0.26); |
| 37 | + } |
| 38 | +} |
| 39 | + |
23 | 40 | // Applies a property to an md-button element for each of the supported palettes. |
24 | 41 | @mixin _mat-button-theme-color($theme, $property, $color: 'default') { |
25 | 42 | $primary: map-get($theme, primary); |
|
70 | 87 | } |
71 | 88 | } |
72 | 89 |
|
| 90 | + .mat-icon-button { |
| 91 | + @include _mat-button-ripple-color($theme); |
| 92 | + } |
| 93 | + |
73 | 94 | .mat-raised-button, .mat-fab, .mat-mini-fab { |
74 | 95 | // Default properties when not using any [color] value. |
75 | 96 | color: mat-color($foreground, text); |
|
0 commit comments