Skip to content

Commit

Permalink
fix(button): add default color for mat-raised-button (#3052)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao authored and andrewseguin committed Feb 13, 2017
1 parent 8eb9f88 commit 6fe1d9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 6fe1d9a

Please sign in to comment.