My HTML
<mat-checkbox id="includeBoundingBoxWithImage"
[(ngModel)]="includeBoundingBoxWithImage" color="primary"></mat-checkbox>
I have tried below CSS but it does not remove the outside circle
.mdc-checkbox__ripple {
display: none;
}
3
Answers
The ripple you’ve selected is the circle that is shown when you hover over the checkbox. The one that is visible when you click the checkbox has the following selector:
.mat-mdc-checkbox-ripple
, so to remove both, you can do:Tested on Angular material 17
Please try below
Workaround fix would be:
.mat-ripple { display: none; }
or .mat-checkbox-ripple only for checkbox
You can use the below CSS, to apply based on the id field. you can also wrap the checkbox inside a div and add a class to scope the changes only to that checkbox!
stackblitz