Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selectOneMenu style in PrimeFaces

I have been struggling to make adjustments in the fonts size and adjustment i the selectOneMenu, but i have come to peace with it, however after upgrading PrimeFaces from 3.2 to 3.4.2, the selectOneMenu has a gap prefixed to it, which is very annoying.

PrimeFaces 3.2 selectOneMenu

PrimeFaces 3.2 selectOneMenu

PrimeFaces 3.4.2 selectOneMenu

PrimeFaces 3.4.2 selectOneMenu

Code

<p:selectOneMenu id="Category" value="#{databaseSearch.category}" style=" font-size: 35px; height: 20px; width: 80px;">

                                        <f:selectItem itemLabel="Machine" itemValue="Machine"/>
                                        <f:selectItem itemLabel="Company" itemValue="Company"/>
                                        <f:selectItem itemLabel="Contact" itemValue="Contact"/>
                                        <f:selectItem itemLabel="Phone" itemValue="Phone"/>
                                        <f:selectItem itemLabel="Email" itemValue="Email"/>

                                    </p:selectOneMenu>

What do i do ? :(

like image 724
Telson Alva Avatar asked Dec 25 '22 23:12

Telson Alva


1 Answers

You need overrided this css .ui-selectonemenu .ui-selectonemenu-label

like image 114
Mathew Rock Avatar answered Jan 14 '23 07:01

Mathew Rock