Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit d20f6f9

Browse files
tobiaslilja2boilund
authored andcommitted
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
1 parent 577a895 commit d20f6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/Checkbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Container = styled.div<{
100100
${({ hasLabel }) =>
101101
hasLabel
102102
? css`
103-
width: 100%;
103+
width: auto;
104104
justify-content: flex-start;
105105
padding-left: 3px;
106106
> span {

0 commit comments

Comments
 (0)