Currently, I am working with Angular Material and trying to figure out how to remove the default spacing around the checkbox. The checkboxes in Angular Material are typically surrounded by some space (as shown in the image). Is there a simple way to eliminate this space so that I can directly insert the checkbox into my content without any extra padding?
<mat-checkbox formControlName="rememberMe"><span class="remember-me">Remember me</span></mat-checkbox>
https://i.sstatic.net/Q5RPTenZ.png
padding:0
didn't have any effect.
The following code also failed:
input[type="checkbox"] {
width: 10px;
display: flex;
justify-content: center;
overflow: hidden;
}
I appreciate your help in advance!