From 824092e5988e181ed1195afda0ca489ee4b31333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Ducsai?= <56891608+c-h-o-n@users.noreply.github.com> Date: Mon, 9 Dec 2024 03:25:15 +0100 Subject: [PATCH] fix: #3268 unstyled collapse input size (#3293) --- src/components/styled/collapse.css | 2 +- src/components/unstyled/collapse.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/styled/collapse.css b/src/components/styled/collapse.css index 40328fe1cf0..9d76e2d10a5 100644 --- a/src/components/styled/collapse.css +++ b/src/components/styled/collapse.css @@ -58,7 +58,7 @@ details.collapse summary { .collapse-title, :where(.collapse > input[type="checkbox"]), :where(.collapse > input[type="radio"]) { - @apply w-full p-4 pe-12; + @apply p-4 pe-12; min-height: 3.75rem; transition: background-color 0.2s ease-out; } diff --git a/src/components/unstyled/collapse.css b/src/components/unstyled/collapse.css index f8fee07ad13..390abbec9d0 100644 --- a/src/components/unstyled/collapse.css +++ b/src/components/unstyled/collapse.css @@ -16,6 +16,10 @@ .collapse > input[type="radio"] { @apply appearance-none opacity-0; } +:where(.collapse > input[type="checkbox"]), +:where(.collapse > input[type="radio"]) { + @apply w-full h-full +} .collapse-content { @apply invisible col-start-1 row-start-2 min-h-0; transition: visibility 0.2s;