Page 1 of 1

selectBooleanCheckbox

Posted: 14 Sep 2020, 07:36
by oirict
Hi. When attempting to use selectBooleanCheckbox the itemLabel is displayed incorrectly. If I modify the demo to use the selectedBooleanCheckbox as per below the labels are pushed below the crammed checkboxes. Is there something I am missing?

Code: Select all

<div class="card card-w-title">
                           <h1>Checkboxes</h1>						
                             <p:panelGrid columns="4">
							<p:selectBooleanCheckbox itemLabel="Xbox" value="Xbox One" />
							<p:selectBooleanCheckbox itemLabel="PS4" value="PS+" />
							<p:selectBooleanCheckbox itemLabel="Wii" value="Wii U" />
							<p:selectBooleanCheckbox itemLabel="PC" value="PC" />
			   </p:panelGrid>
</div>

Re: selectBooleanCheckbox

Posted: 15 Sep 2020, 03:35
by oirict
Adding the following override makes the checkbox display OK.

Code: Select all

body .ui-chkbox {
    width: auto !important;
}

Re: selectBooleanCheckbox

Posted: 28 Sep 2020, 11:22
by mert.sincan
Fixed for the next version. For now, please try;

Code: Select all

body .ui-selectbooleancheckbox {
    width: auto;
    height: auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}