From e1a9d7e94233ba74426b927ff100e09903fea506 Mon Sep 17 00:00:00 2001 From: Tobias Lilja Date: Mon, 9 Jan 2023 13:06:59 +0100 Subject: [PATCH] fix(checkbox): only checkbox-area is clickable Fixed an issue with being able to click outside of the checkbox to trigger a toggle. Fixes: #252 --- packages/core/src/Checkbox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Checkbox/index.tsx b/packages/core/src/Checkbox/index.tsx index d72a75b2..5366659e 100644 --- a/packages/core/src/Checkbox/index.tsx +++ b/packages/core/src/Checkbox/index.tsx @@ -100,7 +100,7 @@ const Container = styled.div<{ ${({ hasLabel }) => hasLabel ? css` - width: 100%; + width: auto; justify-content: flex-start; padding-left: 3px; > span {