I'm newbie in Angular and Angular material. I'm creating a form and want to change the background color for example for Red.
But instead of simply changing the background color, the red color get over the form.
<form class="example-form" style="background-color:red">
<mat-form-field class="example-full-width">
<mat-label>Favorite food</mat-label>
<input matInput placeholder="Ex. Pizza" value="Sushi">
</mat-form-field>
<mat-form-field class="example-full-width">
<mat-label>Leave a comment</mat-label>
<textarea matInput placeholder="Ex. It makes me feel..."></textarea>
</mat-form-field>
</form>
Here is an example on stackblitz: Example
Can someone say me, how is the correct way for setting the background color?
Thank you!