Can anyone help me with changing the color of the selected item on ion-select
? I've tried several solutions without success. Any suggestions?
Documentation:
https://ionicframework.com/docs/api/select
I attempted to use the color
property, but it didn't work as expected. It always defaults to the primary
color.
I'm trying to set it to tertiary
.
<form [formGroup]="form">
<ion-select
mode="md"
formControlName="sortBy"
placeholder="Sort By"
interface="popover"
color="tertiary" // isn't working here
(ionChange)="sortBy($event)"
>
<ion-select-option value="1">Newest</ion-select-option>
<ion-select-option value="2">Oldest</ion-select-option>
<ion-select-option value="3">Near Me</ion-select-option>
</ion-select>
</form>