I am currently utilizing Angular
, Angular Material
, and CSS
This is the code for my mat-form-field
:
<mat-form-field class="custom-form-field" appearance="outline" style="padding-top: 0px;padding-bottom: 0px; line-height: 0px;">
<input style="padding-top: 0px; padding-bottom: 0px;" matInput type="text" id="onSearch" (keyup)="keyUp($event)">
<mat-icon matPrefix class="centered-icon">search</mat-icon>
</mat-form-field>
When I inspect this part on the front-end, it looks like this:
The issue is that the mat-form-field
is taking up extra space, causing the checkboxes to move down.
Even after setting padding-bottom: 0px
or margin-bottom: 0px
, it's still occupying that space.
Is there a way to remove this extra space?