File tree 3 files changed +9
-2
lines changed
material-experimental/mdc-button
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ export const MAT_BUTTON_HOST = {
35
35
// an unthemed version. If color is undefined, apply a CSS class that makes it easy to
36
36
// select and style this "theme".
37
37
'[class.mat-unthemed]' : '!color' ,
38
+ // Add a class that applies to all buttons. This makes it easier to target if somebody
39
+ // wants to target all Material buttons.
40
+ '[class.mat-mdc-button-base]' : 'true' ,
38
41
'class' : 'mat-mdc-focus-indicator' ,
39
42
} ;
40
43
@@ -148,6 +151,9 @@ export const MAT_ANCHOR_HOST = {
148
151
// an unthemed version. If color is undefined, apply a CSS class that makes it easy to
149
152
// select and style this "theme".
150
153
'[class.mat-unthemed]' : '!color' ,
154
+ // Add a class that applies to all buttons. This makes it easier to target if somebody
155
+ // wants to target all Material buttons.
156
+ '[class.mat-mdc-button-base]' : 'true' ,
151
157
'class' : 'mat-mdc-focus-indicator' ,
152
158
} ;
153
159
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ $mat-dialog-button-margin: 8px !default;
61
61
justify-content : center ;
62
62
}
63
63
64
- .mat-button-base + .mat-button-base {
64
+ .mat-button-base + .mat-button-base ,
65
+ .mat-mdc-button-base + .mat-mdc-button-base {
65
66
margin-left : $mat-dialog-button-margin ;
66
67
67
68
[dir = ' rtl' ] & {
Original file line number Diff line number Diff line change 72
72
justify-content : flex-end ;
73
73
padding : 16px 8px 16px 24px ;
74
74
75
- button .mat-button-base {
75
+ button .mat-button-base , button .mat-mdc-button-base {
76
76
margin-left : 8px ;
77
77
78
78
[dir = ' rtl' ] & {
You can’t perform that action at this time.
0 commit comments