| 
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);  | 
 | 
24 | 23 |   }  | 
25 | 24 | }  | 
26 | 25 | 
 
  | 
 | 26 | +@mixin _mat-button-ripple-color($theme) {  | 
 | 27 | +  $primary: map-get($theme, primary);  | 
 | 28 | +  $accent: map-get($theme, accent);  | 
 | 29 | +  $warn: map-get($theme, warn);  | 
 | 30 | + | 
 | 31 | +  &.mat-primary .mat-ripple-element {  | 
 | 32 | +    background-color: mat-color($primary, 0.26);  | 
 | 33 | +  }  | 
 | 34 | + | 
 | 35 | +  &.mat-accent .mat-ripple-element {  | 
 | 36 | +    background-color: mat-color($accent, 0.26);  | 
 | 37 | +  }  | 
 | 38 | + | 
 | 39 | +  &.mat-warn .mat-ripple-element {  | 
 | 40 | +    background-color: mat-color($warn, 0.26);  | 
 | 41 | +  }  | 
 | 42 | +}  | 
 | 43 | + | 
27 | 44 | // Applies a property to an md-button element for each of the supported palettes.  | 
28 | 45 | @mixin _mat-button-theme-color($theme, $property, $color: 'default') {  | 
29 | 46 |   $primary: map-get($theme, primary);  | 
 | 
69 | 86 |     background: transparent;  | 
70 | 87 |   }  | 
71 | 88 | 
 
  | 
 | 89 | +  .mat-icon-button {  | 
 | 90 | +    @include _mat-button-ripple-color($theme);  | 
 | 91 | +  }  | 
 | 92 | + | 
72 | 93 |   .mat-raised-button, .mat-fab, .mat-mini-fab {  | 
73 | 94 |     // Default properties when not using any [color] value.  | 
74 | 95 |     color: mat-color($foreground, text);  | 
 | 
0 commit comments