Whenever I add wire:click to a square button with only an icon, it breaks the center alignment of the icon. This is because Flux inserts an empty <span></span> tag inside the button upon rendering. Since this increases the number of elements within the button from 1 to 2, the Tailwind class "gap-2" adds a gap. This effectively shifts the icon to the side.
The behavior is the same whether inside or outside a button group.
This does not seem to happen with any of the other events, such as wire:submit
Whenever I add
wire:click
to a square button with only an icon, it breaks the center alignment of the icon. This is because Flux inserts an empty<span></span>
tag inside the button upon rendering. Since this increases the number of elements within the button from 1 to 2, the Tailwind class "gap-2" adds a gap. This effectively shifts the icon to the side.wire:submit
Balde Markup
Rendered Markup