We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675aa66 commit 3f1e960Copy full SHA for 3f1e960
src/lib/input/_input-theme.scss
@@ -26,6 +26,21 @@
26
@include input-placeholder {
27
color: _mat-control-placeholder-color($theme);
28
}
29
+
30
+ // On dark themes we set the native `select` color to some shade of white,
31
+ // however the color propagates to all of the `option` elements, which are
32
+ // always on a white background inside the dropdown, causing them to blend in.
33
+ // Since we can't change background of the dropdown, we need to explicitly
34
+ // reset the color of the options to something dark.
35
+ @if (map-get($theme, is-dark)) {
36
+ option {
37
+ color: $dark-primary-text;
38
+ }
39
40
+ option:disabled {
41
+ color: $dark-disabled-text;
42
43
44
45
46
.mat-accent .mat-input-element {
0 commit comments