If you have more then one page and you want to match spinner color with the page color you can but you will have to specify this on the global.scss
. you can create as much spinner color as you want. and you can use them by the CSS class. I have shared HTML and CSS code for it below please have a look
global.scss
.red.refresher-native{
ion-spinner{
color: red!important;
}
.arrow-container ion-icon{
color: red!important;
}
}
.green.refresher-native{
ion-spinner{
color: green!important;
}
.arrow-container ion-icon{
color: green!important;
}
}
.purple.refresher-native{
ion-spinner{
color: purple!important;
}
.arrow-container ion-icon{
color: purple!important;
}
}
html code
//Change class name as per your requirement
<ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)" class="red">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
<ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)" class="green">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…