In my application when my material dialog pop up, the "X" button to leave the dialog looks selected. If I click inside the dialog, it unselect itself.
<button mat-icon-button class="close-button" [mat-dialog-close]="true">
<mat-icon class="close-icon" color="warn">close</mat-icon>
</button>
button {
margin-top: 10px;
padding-left: 10px;
}
.close-button{
margin-top: 0px;
padding-left: 0px;
float: right;
top:-24px;
right:-24px;
}
How can I make it look normal as soon as I open the dialog ?
