How to change the back button color in Ionic 2


#1

Just use as some user suggested on forum

 <ion-nav-bar class="bar-light">
     <ion-nav-back-button class="button-royal">
     </ion-nav-back-button>
 </ion-nav-bar>

This is the link :- Change back-button color
But the app do not open when I add this one. How to change back button color in Ionic 2 ?


#2

@chathurangaits I updated $toolbar-md-button-color to required value in app.variable.scss.


#3

You could do use the button- class on the back button.
http://codepen.io/mhartington/pen/GgzbbL

<ion-nav-bar class="bar-light">
      <ion-nav-back-button class="button-royal">
      </ion-nav-back-button>
    </ion-nav-bar>