From 2e384eb833957aff0dc8a68b3e057c210bc8e9da Mon Sep 17 00:00:00 2001 From: Guillem Arias Fauste Date: Mon, 15 Jun 2026 08:06:12 +0200 Subject: [PATCH] fix(ds): shrink dialog close button to size sm (#2309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dialog close button rendered as a :md icon button (44x44px with a 20px glyph) — noticeably larger than the dialog's own action buttons (36px tall) and visually heavy next to the title. Pass size: :sm so the close control is 32x32px with a 16px glyph, matching the action row's weight. 32px still clears the WCAG 2.5.8 (AA) 24px minimum target. --- app/components/DS/dialog.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/DS/dialog.rb b/app/components/DS/dialog.rb index fe2611339..d1f17e310 100644 --- a/app/components/DS/dialog.rb +++ b/app/components/DS/dialog.rb @@ -142,6 +142,7 @@ class DS::Dialog < DesignSystemComponent classes = responsive? ? "ml-auto hidden lg:flex" : "ml-auto" render DS::Button.new( variant: "icon", + size: :sm, class: classes, icon: "x", title: I18n.t("ds.dialog.close"),