From f8e75fa4e3cca915006c22435527ab2ea3611a2b Mon Sep 17 00:00:00 2001 From: Pekka Helesuo Date: Thu, 23 Nov 2023 13:16:15 +0200 Subject: [PATCH] align checkbox to the top even when label is on multiple rows --- src/react/components/Checkbox.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/react/components/Checkbox.jsx b/src/react/components/Checkbox.jsx index 454292e52e..2d9325e813 100644 --- a/src/react/components/Checkbox.jsx +++ b/src/react/components/Checkbox.jsx @@ -7,6 +7,10 @@ const StyledCheckbox = styled(AntCheckbox)` + .ant-checkbox-wrapper { margin-left: 0; } + + .ant-checkbox { + margin-bottom: auto; + } `; export const Checkbox = (props) => (