I want to add Cancel Icon Outside for Mat-Dialog when its opened.
For reference: https://stackblitz.com/angular/dgjvllndexp?file=app%2Fdialog-content-example.html
ThankYou in advance.
I want to add Cancel Icon Outside for Mat-Dialog when its opened.
For reference: https://stackblitz.com/angular/dgjvllndexp?file=app%2Fdialog-content-example.html
ThankYou in advance.
First your dialog container should be positioned to relative and x-button to absolution position. Then on x-button, set to top:0;right:0; and translate(100%,-100%).
It should position it as you want. See my stackblitz https://stackblitz.com/edit/angular-e8aunf