How can I get the first item of an ion-list?

How can I get the first item of an ion-list?

I tried by doing this:

ion-item:first {
    box-shadow: 0px -10px 30px -10px color($colors, slate);
}

But It does not work and I get that warning:

“:first” is not a valid pseudo-class

try using :first-child

1 Like