From e5f917b47dee6d677b3aeba88b407116c233f2cc Mon Sep 17 00:00:00 2001 From: ghabriel Date: Thu, 10 Sep 2026 23:35:35 +0700 Subject: [PATCH] Fix button with icons but empty slot rendered as square button --- stubs/resources/views/flux/button/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/resources/views/flux/button/index.blade.php b/stubs/resources/views/flux/button/index.blade.php index ef6643f9..47fbdcec 100644 --- a/stubs/resources/views/flux/button/index.blade.php +++ b/stubs/resources/views/flux/button/index.blade.php @@ -24,7 +24,7 @@ $iconLeading = $icon ??= $iconLeading; // Button should be a square if it has no text contents... -$square ??= $slot->isEmpty(); +$square ??= $slot->isEmpty() && ! ($iconLeading && $iconTrailing); // Size-up icons in square/icon-only buttons... (xs buttons just get micro size/style...) $iconVariant ??= ($size === 'xs')