Skip to content

Commit

Permalink
fix(select): option text color blending in with background on dark th…
Browse files Browse the repository at this point in the history
…eme (#4568)

Sets the proper color on the `md-option`, avoiding color contrast issues in dark themes.

Fixes #4560.
  • Loading branch information
crisbeto authored and jelbourn committed May 17, 2017
1 parent 82e53c5 commit 43e207c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/core/option/_option-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
$warn: map-get($theme, warn);

.mat-option {
color: mat-color($foreground, text);

&:hover:not(.mat-option-disabled), &:focus:not(.mat-option-disabled) {
background: mat-color($background, hover);
}
Expand Down

0 comments on commit 43e207c

Please sign in to comment.