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.