digitalpoint
Well-known member
- Affected version
- 2.1.0
Identical buttons where one uses the icon attribute and one uses the fa attribute end up with a 1px vertical alignment difference as shown here:
	
	
	
		

It can of course be worked around to never use the icon attribute when you have multiple buttons, but seems like it should be the same, just with a different icon.
				
			
		Code:
	
	<xf:button href="{{ link('events/analytics', $event) }}" class="button" fa="far fa-chart-bar" data-xf-click="overlay" data-cache="off" >{{ phrase('stats') }}</xf:button>
<xf:button href="{{ link('events/analytics', $event) }}" class="button" icon="result" data-xf-click="overlay" data-cache="off" >{{ phrase('stats') }}</xf:button>
It can of course be worked around to never use the icon attribute when you have multiple buttons, but seems like it should be the same, just with a different icon.
 
 
		 
					
				