I have two dropdown below:
<h4>Basic mat-select</h4> <mat-form-field appearance="fill"> <mat-label>Favorite food</mat-label> <mat-select> <mat-option *ngFor="let food of foods" [value]="food.value"> {{food.viewValue}} </mat-option> </mat-select> </mat-form-field> <h4>Basic native select</h4> <mat-form-field appearance="fill"> <mat-label>Cars</mat-label> <select matNativeControl required> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> </mat-form-field>
I need to use 2nd one, Basic native select and apply css styling which looks similar to 1st one. I dont want exact same but somewhat similar, is it possible?
refer this code https://material.angular.io/components/select/overview
From what I know and have experienced there's no simple way to do it using just CSS. You will also need JS.
These two links should help: