Changing colors of the ion-action-sheet component not working

I would like to be able to change the color of each action button. I know that it’s possible using cssClass property, however it won’t work.

Looking at some similar questions, I came across some solutions that aparently used to work in the past versions of Ionic, but it doesn’t work with Ionic 4, which would be adding custom styles inside the app.scss file. The thing is Ionic 4 doesn’t come with this file.

I tried adding my custom style in the scoped css but didn’t work.

How could I change the colors of the ion-action-sheet component? Thank you.

Hi,
Add the styles for the class in the global.scss

And use the cssClass for the button, as you mentioned

And here it is

Best Coding,
Getsov

1 Like

Thank you but I don’t find any global.scss file.