I have a challenge with making a fully clickable span or button that includes a Bootstrap refresh glyph-icon. The current code I have inherited only allows the icon itself to be clicked, leaving the area between the icon and button border unclickable. This results in the user feeling like the edge of the button is not responsive.
Below is the existing code snippet:
<span class="btn btn-default btn-xs" style="background-color: transparent;">
<h:commandLink id="refresh" style="height:25px">
<span class="glyphicon glyphicon-refresh"></span>
<a4j:ajax render="richTable cnt_label scroller"
execute="richTable cnt_label scroller" event="click" immediate="true"
oncomplete="richTableRerenderCompleted('refresh')"/>
</h:commandLink>
</span>
I attempted replacing the outer span with a <button>
, which fixed the clickability issue, but it caused the table to display oddly during the refresh.
Directly using a RichFaces commandButton or commandLink made the situation even worse.
Do you have any suggestions on how to resolve this?