This is the mat-checkbox in Angular
that has wrong style(in the picture). How can I keep the small checkbox only? Click here to see the picture
You should use ::ng-deep in your CSS file. (ps. How and where to use ::ng-deep )
Example:
::ng-deep mat-checkbox.yourcheckbox .mat-checkbox-frame{
border: 0px;
}
StackBlitz example: https://stackblitz.com/edit/angular-5j1aur?file=app%2Fcheckbox-configurable-example.css
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.