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
{{ message }}
Repository navigation
Proposal: Ability to add extra class(es) to dialog container #4653
@jelbourn With the addition of panelClass in #4722, I'm able to achieve what I want. Happy to close unless you see any value in also being able to add classes to the dialog container.
I know this thread is closed but I was wondering if it's possible to add a class from within the dialog component ?
The panelClass configuration needs to be used everywhere I want to call the dialog, but my need is to apply the same class all the time so it's quite redundant. I was looking for something like "host" solution for component.
@no-more you might be interested in using MAT_DIALOG_DEFAULT_OPTIONS if you want to apply the class to all dialogs, or maybe follow #6206 since it would provide the ability to modify the panelClass
Thanks for your fast response.
I'll follow the other thread as my need is to be able to apply one or more class to a specific dialog component(all instances of this components) and not to all my dialogs.
angular-automatic-lock-bot commented on Sep 9, 2019
Activity
willshowell commentedon May 31, 2017
@jelbourn With the addition of
panelClassin #4722, I'm able to achieve what I want. Happy to close unless you see any value in also being able to add classes to the dialog container.jelbourn commentedon May 31, 2017
Sounds good to me
zdendapa commentedon Jun 30, 2018
its not perfect, but fast solution
/deep/ .mat-dialog-container {
padding: 0;
}
no-more commentedon Aug 28, 2018
I know this thread is closed but I was wondering if it's possible to add a class from within the dialog component ?
The panelClass configuration needs to be used everywhere I want to call the dialog, but my need is to apply the same class all the time so it's quite redundant. I was looking for something like "host" solution for component.
Thanks.
willshowell commentedon Aug 28, 2018
@no-more you might be interested in using
MAT_DIALOG_DEFAULT_OPTIONSif you want to apply the class to all dialogs, or maybe follow #6206 since it would provide the ability to modify the panelClassno-more commentedon Aug 28, 2018
Thanks for your fast response.
I'll follow the other thread as my need is to be able to apply one or more class to a specific dialog component(all instances of this components) and not to all my dialogs.
angular-automatic-lock-bot commentedon Sep 9, 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.