fix(button): incorrect text color when no color is passed in on dark theme (#9234)

Fixes buttons without a set `color` having a dark text color on a dark background, if they aren't inside a component that provides the color for them (e.g. a sidenav container).

Fixes #9231.
This commit is contained in:
Kristiyan Kostadinov
2018-01-23 16:26:11 +01:00
committed by Jeremy Elbourn
parent 4e1a6a8e18
commit 6824375494
+1
View File
@@ -77,6 +77,7 @@
.mat-button, .mat-icon-button {
background: transparent;
color: mat-color($foreground, text);
@include _mat-button-focus-color($theme);
@include _mat-button-theme-color($theme, 'color');