Struggling with customizing a single option in the p-dropdown element of my primeng app. Not sure how to achieve this, can anyone help?
<p-dropdown id="dropdown" [options]="options" optionLabel="name" optionValue="name"></p-dropdown>
My current CSS code is:
p-dropdown ::ng-deep .p-dropdown-item {
/* Custom CSS for one specific option */
}
I've attempted using various pseudo-selectors like :first, :first-child, :first-of-type, :nth-child, :nth-of-type to target only one option without success. Any suggestions on how I can accomplish this?
Note: This question pertains specifically to the primeng p-dropdown element, not the select element. Please read carefully before providing assistance.