You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the doc: id: string | ID for the dialog. If omitted, a unique one will be generated.
What is the current behavior?
the generated dialog has no ID attribute: <mat-dialog-container class="mat-dialog-container ng-tns-c1-0 ng-trigger ng-trigger-slideDialog ng-star-inserted" tabindex="-1" role="dialog" style="transform: none; opacity: 1;">...</mat-dialog-container>
The main purpose of the id was to be able to get a hold of an arbitrary MatDialogRef. That being said, as a side-effect of #9379 it'll be added to the dialog container.
I'm newbie of the web world, sorry for bothering you with my simple questions.
If the id field will not exist in the generated HTML, what's the proper way to customize the <mat-dialog-container> element style? For example, to set the padding=0px instead of the default CSS setting.
Activity
crisbeto commentedon Jan 20, 2018
The main purpose of the id was to be able to get a hold of an arbitrary
MatDialogRef. That being said, as a side-effect of #9379 it'll be added to the dialog container.goldenbull commentedon Jan 22, 2018
I'm newbie of the web world, sorry for bothering you with my simple questions.
If the
idfield will not exist in the generated HTML, what's the proper way to customize the<mat-dialog-container>element style? For example, to set the padding=0px instead of the default CSS setting.crisbeto commentedon Jan 22, 2018
You can pass in the
panelClassoption and use that class to target your dialog.angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.