From 014f55a4f52d5941f08eb064d135e7c30a0693b3 Mon Sep 17 00:00:00 2001 From: Pouya Saadeghi Date: Fri, 28 Feb 2025 15:51:06 +0300 Subject: [PATCH] fix label border when used like `sm:label` --- packages/daisyui/src/components/label.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/daisyui/src/components/label.css b/packages/daisyui/src/components/label.css index c19f4710010..51160ad5258 100644 --- a/packages/daisyui/src/components/label.css +++ b/packages/daisyui/src/components/label.css @@ -3,10 +3,7 @@ &:has(input) { @apply cursor-pointer; } -} -.input, -.select { - .label { + &:is(.input > *, .select > *) { @apply flex h-[calc(100%-0.5rem)] items-center px-3 whitespace-nowrap; font-size: inherit; &:first-child {