Skip to content

Commit

Permalink
fix(button): only flat button and icon buttons should inherit the col…
Browse files Browse the repository at this point in the history
…or (#2561)

fixes #2539
  • Loading branch information
EladBezalel authored and tinayuangao committed Jan 10, 2017
1 parent fb750b4 commit ac363df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/button/_button-base.scss
Expand Up @@ -41,7 +41,6 @@ $md-mini-fab-padding: 8px !default;
font-size: $md-body-font-size-base;
font-family: $md-font-family;
font-weight: 500;
color: currentColor;
text-align: center;

// Sizing.
Expand Down
3 changes: 3 additions & 0 deletions src/lib/button/button.scss
Expand Up @@ -8,6 +8,9 @@
[md-button], [md-icon-button] {
@extend %md-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

0 comments on commit ac363df

Please sign in to comment.