From cd2b6df2b1d75ee3ee635cdb1fbdcbea25670a91 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 4 Jan 2018 18:00:13 +0200 Subject: [PATCH] fix(button): incorrect text color when no color is passed in on dark theme 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. --- src/lib/button/_button-theme.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/button/_button-theme.scss b/src/lib/button/_button-theme.scss index 661cb8015bec..3007134f5fdf 100644 --- a/src/lib/button/_button-theme.scss +++ b/src/lib/button/_button-theme.scss @@ -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');