John
John

Reputation: 750

Change color of menu toggle in ionic2

I am developing an app in ionic2. I would like to change the background-color of the menuToggle to creme/white color and change the color of the three lines to black. The button code is given below:

<ion-col col-2>
    <button ion-button menuToggle
        small *ngIf="Buttonclicked"                
        (click)="editdata(item)"><ion-icon name="menu"></ion-icon>
    </button>
</ion-col>

Please guide in this regard.

Upvotes: 0

Views: 877

Answers (1)

David
David

Reputation: 7507

To change the color of an item you have to add the color directive:

<button ion-button menuToggle small color="white" *ngIf="Buttonclicked"(click)="editdata(item)">
  <ion-icon name="menu" color="black"></ion-icon>
</button>

Upvotes: 2

Related Questions