12
12
// ::after for state interactions (hover, active, focus). Their API calls this their
13
13
// "ripple target", but we do not use it as our ripple, just state color.
14
14
$mat-button-state-target : ' .mdc-button__ripple' ;
15
+ $mat-fab-state-target : ' .mdc-fab__ripple' ;
15
16
16
17
// Applies the disabled theme color to the text color.
17
18
@mixin _mat-button-disabled-color () {
@@ -213,11 +214,11 @@ $mat-button-state-target: '.mdc-button__ripple';
213
214
@include mdc-helpers .mat-using-mdc-theme ($config ) {
214
215
.mat-mdc-fab , .mat-mdc-mini-fab {
215
216
@include mdc-states (
216
- $query : mdc-helpers .$mat-theme-styles-query , $ripple-target : $mat-button -state-target );
217
+ $query : mdc-helpers .$mat-theme-styles-query , $ripple-target : $mat-fab -state-target );
217
218
218
219
& .mat-unthemed {
219
220
@include mdc-states-base-color (mdc-helpers .$mdc-theme-on-surface ,
220
- $query : mdc-helpers .$mat-theme-styles-query , $ripple-target : $mat-button -state-target );
221
+ $query : mdc-helpers .$mat-theme-styles-query , $ripple-target : $mat-fab -state-target );
221
222
@include mdc-fab-container-color (mdc-helpers .$mdc-theme-surface ,
222
223
$query : mdc-helpers .$mat-theme-styles-query );
223
224
@include mdc-fab-ink-color (mdc-helpers .$mdc-theme-on-surface ,
@@ -226,23 +227,23 @@ $mat-button-state-target: '.mdc-button__ripple';
226
227
227
228
& .mat-primary {
228
229
@include mdc-states-base-color (on- primary, $query : mdc-helpers .$mat-theme-styles-query ,
229
- $ripple-target : $mat-button -state-target );
230
+ $ripple-target : $mat-fab -state-target );
230
231
@include mdc-fab-container-color (primary, $query : mdc-helpers .$mat-theme-styles-query );
231
232
@include mdc-fab-ink-color (on- primary, $query : mdc-helpers .$mat-theme-styles-query );
232
233
@include _mat-button-ripple-ink-color (on- primary);
233
234
}
234
235
235
236
& .mat-accent {
236
237
@include mdc-states-base-color (on- secondary, $query : mdc-helpers .$mat-theme-styles-query ,
237
- $ripple-target : $mat-button -state-target );
238
+ $ripple-target : $mat-fab -state-target );
238
239
@include mdc-fab-container-color (secondary, $query : mdc-helpers .$mat-theme-styles-query );
239
240
@include mdc-fab-ink-color (on- secondary, $query : mdc-helpers .$mat-theme-styles-query );
240
241
@include _mat-button-ripple-ink-color (on- secondary);
241
242
}
242
243
243
244
& .mat-warn {
244
245
@include mdc-states-base-color (on- error, $query : mdc-helpers .$mat-theme-styles-query ,
245
- $ripple-target : $mat-button -state-target );
246
+ $ripple-target : $mat-fab -state-target );
246
247
@include mdc-fab-container-color (error, $query : mdc-helpers .$mat-theme-styles-query );
247
248
@include mdc-fab-ink-color (on- error, $query : mdc-helpers .$mat-theme-styles-query );
248
249
@include _mat-button-ripple-ink-color (on- error);
0 commit comments