From dfaf1a23fa9e5b7632bf0759334d11592822439b Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Tue, 4 Oct 2022 16:50:51 +0400 Subject: [PATCH] [@mantine/core] Fix incorrect cursor type on Checkbox, Radio and Switch when cursorType is set on theme --- src/mantine-core/src/Checkbox/Checkbox.styles.ts | 1 + src/mantine-core/src/Radio/Radio.styles.ts | 1 + src/mantine-core/src/Switch/Switch.styles.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/mantine-core/src/Checkbox/Checkbox.styles.ts b/src/mantine-core/src/Checkbox/Checkbox.styles.ts index e3cea12bc08..4acd7022c55 100644 --- a/src/mantine-core/src/Checkbox/Checkbox.styles.ts +++ b/src/mantine-core/src/Checkbox/Checkbox.styles.ts @@ -56,6 +56,7 @@ export default createStyles( }, label: { + cursor: theme.cursorType, [labelPosition === 'left' ? 'paddingRight' : 'paddingLeft']: theme.spacing.sm, }, diff --git a/src/mantine-core/src/Radio/Radio.styles.ts b/src/mantine-core/src/Radio/Radio.styles.ts index 0b3c915abff..98d059768ea 100644 --- a/src/mantine-core/src/Radio/Radio.styles.ts +++ b/src/mantine-core/src/Radio/Radio.styles.ts @@ -43,6 +43,7 @@ export default createStyles( }, label: { + cursor: theme.cursorType, [labelPosition === 'left' ? 'paddingRight' : 'paddingLeft']: theme.spacing.sm, }, diff --git a/src/mantine-core/src/Switch/Switch.styles.ts b/src/mantine-core/src/Switch/Switch.styles.ts index f908f167abc..62b66dc1d8f 100644 --- a/src/mantine-core/src/Switch/Switch.styles.ts +++ b/src/mantine-core/src/Switch/Switch.styles.ts @@ -71,6 +71,7 @@ export default createStyles( }, label: { + cursor: theme.cursorType, [labelPosition === 'left' ? 'paddingRight' : 'paddingLeft']: theme.spacing.sm, },