How to remove click effect of an ion-item
问题 I want to remove click effect of an ion-item.I used --background-activated and --ripple-color but nothing happend. .no-click{ --background-activated: transparent; --ripple-color: transparent; } <ion-item class="no-click"> <ion-avatar slot="start"> <img [src]="img"> </ion-avatar> <ion-label>{{name}}</ion-label> </ion-item> How can i remove click effect of an ion-item? 回答1: Simply give pointer-events:none css to disable click. .no-click { pointer-events:none; //This makes it not clickable }