Ionic 4 - remove shadow box from ion-searchbar

I am trying to remove the box-shadow from the searchbar through css but it’s not working like this:

.searchbar-input {
  box-shadow: none !important;
}

but it doesn’t work.

However if I edit it directly by inspecting the website it works as expected:

Any idea on how to do this?

Thanks.

you need to put this style in your global.scss file and it will work

3 Likes

Thank you. for your answer !!
this is correct answer.