I am trying to change the placeholder text color on an Angular Material input. Appears to default to black but I want it to be white due to having a dark background color.
I have read probably every post on this site on how to do this but nothing seems to work. ::ng-deep and mat-placeholder are not options.
Here is a snippet from my HTML:
<form #searchForm="ngForm" class="example-full-width mr-auto">
<mat-form-field style="width: 350px; font-size: 14px; margin-bottom: -15px;">
<mat-label style="color: white;">Search for an Employee</mat-label>
<input matInput [(ngModel)]="userIdInput" placeholder="Enter at least 2 characters of a name or ID"
!important
that is overriding? Is the actual label some child element that has its own stylings? – krillgarmat-form-field-label
– wentjun