I can't set the box-shadow property of ion-button to none in ionic 4, so how can I do that for a single button and for all the buttons at once ?
I found a way that worked for me, the below code disables the ion-button shadow:
ion-button{
--box-shadow:none;
}
<ion-button class="main-button" >Get Started</ion-button>
.main-button{
--box-shadow:none;
}
CSS Custom Properties
--box-shadow
--background
--color
There is whole list of CSS Custom Properties in this link https://ionicframework.com/docs/api/button
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With