i want to overright the style of primeng components as per component level not for whole app, either i have to change the style in main theme.css
file or inline style, but seems inline not works sometimes as expected let suppose as example i have to use
<p-dropdown [options]="cities" formControlName="selectedCity"></p-dropdown>
and i have to change the style of class ui-dropdown-item
class name as per documentation.
i need same component with two diff style what is the best approcah for the same ? if anyone having working example please add the link.
Try using
:host >>> .ui-dropdown-item {...}
You won't need any surrounded div or adding the styles to the main style.css
.