I'm using Angular 15 with Material 15 and trying to add a button without ripple effect / any hover effect's.
This used to work in angular material 12:
<button mat-button [disableRipple]="true">DoSomething</button>
But now it's still showing ripple / hover effect's. Is the "disableRipple" input broken?
I can remove this behavior by doing:
.no-hover-effect {
&.mat-mdc-button {
::ng-deep {
.mat-mdc-button-persistent-ripple, .mat-mdc-button-ripple {
display: none;
}
}
}
}
But I would like a solution without having to modify the css.