From 54b28b1f15af7ef54125d2ac94aec1e412c618bc Mon Sep 17 00:00:00 2001 From: crisbeto Date: Mon, 15 May 2017 21:22:06 +0200 Subject: [PATCH] fix(select): option text color blending in with background on dark theme Sets the proper color on the `md-option`, avoiding color contrast issues in dark themes. Fixes #4560. --- src/lib/core/option/_option-theme.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/core/option/_option-theme.scss b/src/lib/core/option/_option-theme.scss index 01fcc8585fd2..c588444606cf 100644 --- a/src/lib/core/option/_option-theme.scss +++ b/src/lib/core/option/_option-theme.scss @@ -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); }