Works with 17.0.3
this affects the https://material.angular.io/components/checkbox
"* 2" - this is your value, how many times to increase
the value of how many times to increase should be the same for: /* from angular material: --mdc-checkbox-state-layer-size and --mdc-checkbox-state-size
/* from angular material: --mdc-checkbox-state-layer-size */
/* custom for your convenience: --mdc-checkbox-state-size */
:root {
--mdc-checkbox-state-layer-size: calc(40px * 2);
--mdc-checkbox-state-size: calc(18px * 2);
}
.mdc-checkbox {
flex: 0 0 var(--mdc-checkbox-state-size) !important;
width: var(--mdc-checkbox-state-size) !important;
height: var(--mdc-checkbox-state-size) !important;
padding: calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-size)) / 2) !important;
}
.mat-mdc-checkbox-touch-target {
width: calc(var(--mdc-checkbox-state-layer-size) + 8) !important;
height: calc(var(--mdc-checkbox-state-layer-size) + 8) !important;
}
.mdc-checkbox .mdc-checkbox__background {
top: calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-size)) / 2) !important;
left: calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-size)) / 2) !important;
width: var(--mdc-checkbox-state-size) !important;
height: var(--mdc-checkbox-state-size) !important;
}