Skip to content

Commit cd2b6df

Browse files
committed
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.
1 parent e20d8f0 commit cd2b6df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/button/_button-theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777

7878
.mat-button, .mat-icon-button {
7979
background: transparent;
80+
color: mat-color($foreground, text);
8081

8182
@include _mat-button-focus-color($theme);
8283
@include _mat-button-theme-color($theme, 'color');

0 commit comments

Comments
 (0)