From 9e78fd1cd0a056db7c5b5320bf5eb8fd3627f08d Mon Sep 17 00:00:00 2001 From: Massimiliano D'Elia Date: Wed, 18 Sep 2024 11:54:01 +0200 Subject: [PATCH] feat: improve checkbox list style --- components/List/List.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/components/List/List.tsx b/components/List/List.tsx index 3298ae52..a56a4063 100644 --- a/components/List/List.tsx +++ b/components/List/List.tsx @@ -90,6 +90,19 @@ const StyledUl = styled('ul', { m: '0 0 0 8px', p: 0, color: '$textDefault', + + '&:has(li > span > input)': { + m: 0, + listStyle: 'none', + li: { + marginLeft: 0, + span: { + input: { + margin: '0 3px 0 0', + }, + }, + }, + }, }); const StyledOl = styled('ol', {