Skip to content

Commit ac363df

Browse files
EladBezaleltinayuangao
authored andcommitted
fix(button): only flat button and icon buttons should inherit the color (#2561)
fixes #2539
1 parent fb750b4 commit ac363df

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/button/_button-base.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ $md-mini-fab-padding: 8px !default;
4141
font-size: $md-body-font-size-base;
4242
font-family: $md-font-family;
4343
font-weight: 500;
44-
color: currentColor;
4544
text-align: center;
4645

4746
// Sizing.

src/lib/button/button.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
[md-button], [md-icon-button] {
99
@extend %md-button-base;
1010

11+
// Only flat button and icon buttons should inherit the color
12+
color: currentColor;
13+
1114
// Only flat buttons and icon buttons (not raised or fabs) have a hover style.
1215
&:hover {
1316
// Use the same visual treatment for hover as for focus.

0 commit comments

Comments
 (0)