I was trying to override one of the default style on the primeng card but some reason when I use the scss file, style is not applied. Below is the code I tried and same code works on the css file.
I have below code on template
<p-card>
<app-component></app-component>
</p-card>
and tried this on scss file
:host >>> .p-card .p-card-body {
padding: 0.5rem;
}
and I have this on appComponent
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-component',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
Same style works when I used the css but not working on scss file. Is there any thing else I have to do for it?