Skip to content

Commit 43e207c

Browse files
crisbetojelbourn
authored andcommitted
fix(select): option text color blending in with background on dark theme (#4568)
Sets the proper color on the `md-option`, avoiding color contrast issues in dark themes. Fixes #4560.
1 parent 82e53c5 commit 43e207c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/core/option/_option-theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
$warn: map-get($theme, warn);
1010

1111
.mat-option {
12+
color: mat-color($foreground, text);
13+
1214
&:hover:not(.mat-option-disabled), &:focus:not(.mat-option-disabled) {
1315
background: mat-color($background, hover);
1416
}

0 commit comments

Comments
 (0)