Background-color in button ion-item: md vs. ios active state


#1

When I put a background-color (css) on an ion-item button,
and testing in Chrome’s emulator,
the md rendering still showed the grey “active” effect,
but the ios rendering does not show the grey “active” effect.

Is this by design, or is this something that could be fixed?
(Using ionic v3.)


#2

What’s your code look like? When you open dev tools and inspect the element can you see your css rule? Can you see it being overwritten?


#3

Ah, I see the likely culprit now.

For the custom css background-color I was using,
I had included the !important rule.

After removing the !important rule, the button effect in ios rendering was good.