3

i want to change background color when i select toggle, right now the bacground color is white, and i want to change it to grey. here is my ion-toggle right now enter image description here and this is what i want enter image description here

this is my .html code

 <ion-item>
     <ion-label no-padding>Allows phone calls?</ion-label>
     <ion-toggle [(ngModel)]="lead.isAllowCall" (ionChange)="change()" [disabled]="lead.oppDisable"></ion-toggle>
</ion-item>

and this is my .scss code

    ion-toggle {
    --background: grey;
    --background-checked: #303E9F;
  
    --handle-background: #303E9F;
    --handle-background-checked: #grey;
  }

i tried that code, but its not working perfectly, can u guys help me how to fix it?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.