All mdc mat-form-field examples have gray/whitesmoke background. How can I change it?
Asked
Active
Viewed 73 times
2 Answers
0
I ended up doing the following. Wondering if there is a better way:
.mat-mdc-text-field-wrapper {
background-color: white !important;
border-bottom: none !important;
}
.mat-mdc-form-field-focus-overlay {
background-color: white !important;
}

Ya.
- 1,671
- 4
- 27
- 53
-1
you can try
.mat-form-field {
background-color: #b0e0e6; /* Light blue color */
}
or
.mat-mdc-form-field {
background-color: #b0e0e6; /* Light blue color */
}
in your styles.css

Wasif Mustahid
- 144
- 9
-
Does nothing for mdc – Ya. Jul 26 '23 at 12:35
-
https://stackblitz.com/edit/munw8f?file=src%2Fexample%2Fform-field-appearance-example.html – Wasif Mustahid Jul 26 '23 at 12:43