-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
package: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report
Description
Bug Report
I've found that adding a routerLink to a ion-card makes the card "focusable" and Chrome has a style on the card when it's in the "focus" state :

You can open the stackblitz linked on Firefox and when you press a card there is no black border while on chrome there is.
Maybe ionic should override this Chrome :hover style to reset it by default ? I added this in my styles.global.scss :
// reset chrome style
ion-card:focus {
outline: none;
}
I'm also able to fix this by setting a (click) event then navigate with NavController instead of a RouterLink
Ionic version:
[x] 5.x
Related code:
Metadata
Metadata
Assignees
Labels
package: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report
