File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
src/material-experimental/mdc-snack-bar Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ng_module(
22
22
module_name = "@angular/material-experimental/mdc-snack-bar" ,
23
23
deps = [
24
24
"//src:dev_mode_types" ,
25
+ "//src/material-experimental/mdc-button" ,
25
26
"//src/material-experimental/mdc-core" ,
26
27
"//src/material/snack-bar" ,
27
28
"@npm//@angular/core" ,
Original file line number Diff line number Diff line change 28
28
@include mdc-snackbar-core-styles ($query : $mat-theme-styles-query );
29
29
}
30
30
31
+ // Usually this color is provided by the `mdc-snackbar-core-styles` mixin, but our styles
32
+ // to handle unthemed buttons have a higher specificity so we have to re-provide it here.
33
+ .mat-mdc-snack-bar-container .mat-mdc-snack-bar-action.mdc-snackbar__action {
34
+ color : $mdc-snackbar-action-ink-color ;
35
+ }
36
+
31
37
$mdc-snackbar-fill-color : $orig-mdc-snackbar-fill-color !global;
32
38
$mdc-snackbar-label-ink-color : $orig-mdc-snackbar-label-ink-color !global;
33
39
$mdc-snackbar-dismiss-ink-color : $orig-mdc-snackbar-dismiss-ink-color !global;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {OverlayModule} from '@angular/cdk/overlay';
10
10
import { PortalModule } from '@angular/cdk/portal' ;
11
11
import { CommonModule } from '@angular/common' ;
12
12
import { NgModule } from '@angular/core' ;
13
- import { MatButtonModule } from '@angular/material/ button' ;
13
+ import { MatButtonModule } from '@angular/material-experimental/mdc- button' ;
14
14
import { MatCommonModule } from '@angular/material-experimental/mdc-core' ;
15
15
16
16
import { MatSimpleSnackBar } from './simple-snack-bar' ;
You can’t perform that action at this time.
0 commit comments