Skip to content

Commit 6fe1d9a

Browse files
tinayuangaoandrewseguin
authored andcommitted
fix(button): add default color for mat-raised-button (#3052)
1 parent 8eb9f88 commit 6fe1d9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/button/button.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
.mat-button, .mat-icon-button {
88
@extend %mat-button-base;
99

10-
// Only flat button and icon buttons should inherit the color
11-
color: currentColor;
12-
1310
// Only flat buttons and icon buttons (not raised or fabs) have a hover style.
1411
&:hover {
1512
// Use the same visual treatment for hover as for focus.
@@ -58,6 +55,7 @@
5855

5956
// The text and icon should be vertical aligned inside a button
6057
.mat-button, .mat-raised-button, .mat-icon-button {
58+
color: currentColor;
6159
.mat-button-wrapper > * {
6260
vertical-align: middle;
6361
}

0 commit comments

Comments
 (0)