mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(button): only flat button and icon buttons should inherit the color (#2561)
fixes #2539
This commit is contained in:
committed by
tinayuangao
parent
fb750b48de
commit
ac363dfdfe
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user