From 6fe1d9a07255ab187bad0b210bcb8a47f715f5e9 Mon Sep 17 00:00:00 2001 From: tinayuangao Date: Mon, 13 Feb 2017 14:09:15 -0800 Subject: [PATCH] fix(button): add default color for mat-raised-button (#3052) --- src/lib/button/button.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/button/button.scss b/src/lib/button/button.scss index 63bab271c252..5f214cf51867 100644 --- a/src/lib/button/button.scss +++ b/src/lib/button/button.scss @@ -7,9 +7,6 @@ .mat-button, .mat-icon-button { @extend %mat-button-base; - // Only flat button and icon buttons should inherit the color - color: currentColor; - // Only flat buttons and icon buttons (not raised or fabs) have a hover style. &:hover { // Use the same visual treatment for hover as for focus. @@ -58,6 +55,7 @@ // The text and icon should be vertical aligned inside a button .mat-button, .mat-raised-button, .mat-icon-button { + color: currentColor; .mat-button-wrapper > * { vertical-align: middle; }