I am trying to place the "search_icon" magnifying glass inside of the search field and code it as a button. This is what I have:
This is what I am going for, but I need to make the icon clickable, and this is if it is written inside of the scss file.
Here is my HTML:
<input *ngIf="!(isMobile$ | async) && (isOnline$ | async)"
#filterTextInput
id="filter-text-input"
class="search-box"
type="text"
[value]="itemFilterText$ | async"
autocomplete="off"
placeholder="{{'HEADER.SEARCH.PLACEHOLDER' | translate}}"
attr.aria-label="{{'HEADER.SEARCH.PLACEHOLDER' | translate }}"
(keyup.enter)="searchForValue(searchString.value)" />
<mat-icon svgIcon="search_icon"></mat-icon>
Any suggestions?