From 687bf7b0226ce977d1f11ac69f062c2958b9879e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Oct 2026 23:16:09 +0000 Subject: [PATCH] Swap the icon for the submit spinner on icon-only buttons The validator prepends a spinner-border with me-2 to a form's submit button. On a .btn-icon button that shows the spinner beside the icon and adds a margin, so the spinner now replaces the icon instead. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RV6XWqMdQZF31RLBxt1G2B --- src/Foundation/public/css/redot.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Foundation/public/css/redot.css b/src/Foundation/public/css/redot.css index 9dea5d3..20154db 100644 --- a/src/Foundation/public/css/redot.css +++ b/src/Foundation/public/css/redot.css @@ -16,6 +16,15 @@ a:not(.text-reset):not([class*='text-decoration-']) { justify-content: center; } +/* The validator prepends a spinner to submitting buttons; icon-only buttons swap their icon for it */ +.btn-icon > .spinner-border { + margin: 0 !important; +} + +.btn-icon > .spinner-border ~ * { + display: none; +} + /* --------------------------------- * Global Utilities * --------------------------------- */