mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
4e1a6a8e18
commit
6824375494
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user