I am currently working with Angular
, Angular Material
, and SCSS
for my project.
Here is the front-end code snippet that I am using:
<mat-form-field class="custom-form-field" style="padding-top: 5px;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 hover over the Search box, it displays a black bold outline, and when I click inside the search box, it shows a blue bold outline as seen in the following images:
https://i.sstatic.net/I1Gsi.png
https://i.sstatic.net/n0iTl.png
I have tried applying the following CSS to remove the outlines, but unfortunately, it's not working:
.mat-form-field input:focus {
outline: none;
box-shadow: none;
}
Can anyone guide me on how to make this textbox appear like a normal one without any bold outlines, similar to the image below?