Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Ion-item even and odd color not working with :hover

$
0
0

@victorsosa wrote:

HI,
I am able to assign different colors to the ion-items, but if I combine that with the with a class using hover to change to a different color it doesn’t works (it use to works in Ionic 3)

This is Ionic 4 issue:

    <ion-item
      *ngFor="let info of cuentas; let odd = odd"
      (click)="select(info)"
      class="selectable"
      [color]="odd ? 'next' : 'light'"
    >

css

ion-item.selectable:hover {
  background-color: #afaeb6 !important;
}

If I remove the ‘next’ css class it works perfect just in those items with the next css applied

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>