We have had this application for many years. But suddenly this issue cropped up. The checkboxes have these unwanted icons out of the blue. Not sure what went wrong. This issue appeared in all DEV/UAT/PROD environments, even without any recent deployments. So I am guessing something to do with CSS/FA Icons which is getting updated live. But I am not sure where to look/start.
code snippet below :
<ul class="list-group filterby">
<li class="list-group-item subtitle">By Metal</li>
<li class="list-group-item"><p:selectManyCheckbox
layout="grid" columns="1"
value="#{physicalProductBean.selectedCurrencyPair}"
valueChangeListener="#{physicalProductBean.selectedCurrencyChanged}">
<f:selectItems
value="#{physicalProductBean.availableCurrencyPairsProduct}"
var="eachCurrency" itemLabel="#{eachCurrency.symbol}"
itemValue="#{eachCurrency.id}" />
<p:ajax update=":physicalProductForm:productListing"></p:ajax>
</p:selectManyCheckbox></li>
</ul>
Any solutions/suggestions highly appreciated
The problem occurs since a few weeks ago, with PrimeFaces < 7 (the newer ones use a font instead of
background-image
, so no issue). To reproduce you could use a theme with border-radius, forui-icon
class. Basically, the problem is with every checkbox, and withui-icon-blank
, here's an example:Here's some workarounds overriding css (I think the clean solution is open a bug to Chrome):
Remove
border-radius
Remove
backgroud-repeat
Remove
background-image
forui-icon-blank
Depending on your css/theme, you could need to add
!important
or adapt to your need.EDIT:
The problem apply also to radio buttons, so I updated the above workarounds.