Fixed <xf:button> with class "button--fullWidth" is not full width if there's no link

Affected version

DragonByte Tech

Well-known member
If you create a button like so: <xf:button class="button--fullWidth button--cta" icon="purchase"> this is the result:


This can be resolved by adding width: 100% to this CSS class: .button.button--fullWidth, a.button.button--fullWidth:



XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.2).

Change log:
Ensure that fullWidth buttons are actually fullWidth (if they are button elements, rather than anchors).
Any changes made as a result of this issue being resolved may not be rolled out here until later.