I'm trying to set the styleclass property of the dropdown control to change its background color but none of the following work:
Code: Select all
<p-dropdown [styleClass]="highlight-yellow" [options]="someOptions">
<p-dropdown styleClass="highlight-yellow" [options]="someOptions">
<p-dropdown panelStyleClass="highlight-yellow" [options]="someOptions">
<p-dropdown [panelStyleClass]="highlight-yellow" [options]="someOptions">
Code: Select all
.highlight-yellow {
background-color: yellow !important;
}
It works fine for other controls like the text box but the dropdown control doesn' want to honor that property.
Am I doing something wrong?