Мне нужна кнопка, которая плавает в правом верхнем углу текстовой области в angular.
Это то, что у меня есть, но она не работает
<textarea matInput matInput rows="15" cols="40" >
<div (click)="formatXml()" class="xmlIcon">
<span matTooltip="'Format Xml'" class="fas fa-search-plus ml-1" ></span>
</div>
</textarea>
.xmlIcon{
padding-right: 20px;
background-position: top right;
background-repeat: no-repeat;
}