-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Description
I've created an Angular libray by ng g library xxx with my commons components like a ConfirmDialog using MatDialogModule
In main app <button mat-flat-button color="primary">DIALOG</button> is correctly styled:

Opening Dialog, buttons are not styled:

Reproduction
I cannot use StackBlitz to reproduce because it not supports angular libraries so I created a repo:
https://github.com/fabriziodebortoli/library-material-dialog-styles.git
Steps to reproduce:
- git clone https://github.com/fabriziodebortoli/library-material-dialog-styles.git
- cd library-material-dialog-styles
- npm install
- npm start
Expected Behavior
Buttons inside Dialogs must be styled
Actual Behavior
What behavior did you actually see?
Environment
- Angular: ~9.0.3
- CDK/Material: ~9.1.0
- Browser(s): Latest Chrome
asimon91, rivoalrivoal and Kurainode