Disable hover color on ion-item in Ionic 5

Ion-items are a nice way of showing lists. The default behavior has some downsides, like a hover color. Here is how to disable it:

ion-item {
  --background-hover: none;
}

 

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!