File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 85
85
background : transparent ;
86
86
87
87
@include _mat-button-theme-color ($theme , ' color' );
88
- @include _mat-button-ripple-color ($theme , default , 0.1 );
89
88
}
90
89
91
90
.mat-raised-button , .mat-fab , .mat-mini-fab {
95
94
96
95
@include _mat-button-theme-color ($theme , ' color' , default- contrast);
97
96
@include _mat-button-theme-color ($theme , ' background-color' );
97
+
98
+ // Add ripple effect with contrast color to buttons that don't have a focus overlay.
98
99
@include _mat-button-ripple-color ($theme , default- contrast);
99
100
}
101
+
102
+ // Add ripple effect with default color to the flat button, which doesn't have a focus overlay.
103
+ .mat-button {
104
+ @include _mat-button-ripple-color ($theme , default , 0.1 );
105
+ }
106
+
107
+ // Add ripple effect with default color to the icon button. Ripple color needs to be stronger
108
+ // since the icon button doesn't have a focus overlay.
109
+ .mat-icon-button {
110
+ @include _mat-button-ripple-color ($theme , default );
111
+ }
100
112
101
113
// TODO(devversion): The color class accent should be just set from TS code. No need for this.
102
114
.mat-fab , .mat-mini-fab {
You can’t perform that action at this time.
0 commit comments