Font-Awesome bug? Two icons on menu items inside menu bar
Posted: 16 May 2015, 13:38
When I enabled FA in my web.xml and started replacing jquery icons with fa icons I get odd behaviour in menu bars.
This problem does not occur with command buttons, buttons, etc. outside menu bars. I've tried several base themes, including metroui.
In my menu bar the menu items tend to look like this:
Specifically, the icon span element has an extra ui-icon class.
My markup is
The same thing happens for p:submenu elements.
I've tested both 5.1.17 and 5.2.1.
This problem does not occur with command buttons, buttons, etc. outside menu bars. I've tried several base themes, including metroui.
In my menu bar the menu items tend to look like this:
Code: Select all
<li class="ui-menuitem ui-widget ui-corner-all" role="menuitem"><a tabindex="-1" class="ui-menuitem-link ui-corner-all" href="/thewall/faq.xhtml"><span class="ui-menuitem-icon ui-icon fa fa-question"></span><span class="ui-menuitem-text">Hjelp</span></a></li>
My markup is
Code: Select all
<p:menuitem icon="fa fa-question" outcome="faq" value="Hjelp"/>
I've tested both 5.1.17 and 5.2.1.