I would like to understand how to apply CSS for the existing PrimeNG autoComplete component.
The change I am looking for is, the input text color should be white.
HTML file (top-bar.component.html)
<p-autoComplete styleClass="myclass" [(ngModel)]="brand" [suggestions]="filteredBrands" (completeMethod)="filterBrands($event)" [size]="20" [minLength]="1"
placeholder="Search" [dropdown]="true" (keyup.enter)="populateResults($event)">
</p-autoComplete>
CSS class (top-bar.component.css)
.myclass .ui-autocomplete .ui-autocomplete-input {
color: white;
}
Component class (top-bar.component.ts)
@Component({
selector: 'app-top-bar',
templateUrl: './top-bar.component.html',
styleUrls: ['./top-bar.component.css']
})
Can someone help me on this ?
Thanks