I want to import ignite-ui styles specifically for a single component.
Component:
@Component({
selector: 'app-detailed-report',
templateUrl: './detailed-report.component.html',
styleUrls: ['./detailed-report.component.css'],
encapsulation: ViewEncapsulation.ShadowDom
})
Css:
@import "../../../../../../../../node_modules/igniteui-angular/styles/igniteui-angular.css";
or
@import "~igniteui-angular/styles/igniteui-angular.css";
This approach is not working as intended. However, by changing
encapsulation: ViewEncapsulation.ShadowDom
to encapsulation: ViewEncapsulation.None
, the styles are applied. The downside is that these styles will also affect other components. My goal is to have these styles apply only to this specific component.