Skip to content

Commit

Permalink
[@mantine/core] Fix incorrect cursor type on Checkbox, Radio and Swit…
Browse files Browse the repository at this point in the history
…ch when cursorType is set on theme
  • Loading branch information
rtivital committed Oct 4, 2022
1 parent 755fcef commit dfaf1a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mantine-core/src/Checkbox/Checkbox.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default createStyles(
},

label: {
cursor: theme.cursorType,
[labelPosition === 'left' ? 'paddingRight' : 'paddingLeft']: theme.spacing.sm,
},

Expand Down
1 change: 1 addition & 0 deletions src/mantine-core/src/Radio/Radio.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default createStyles(
},

label: {
cursor: theme.cursorType,
[labelPosition === 'left' ? 'paddingRight' : 'paddingLeft']: theme.spacing.sm,
},

Expand Down
1 change: 1 addition & 0 deletions src/mantine-core/src/Switch/Switch.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default createStyles(
},

label: {
cursor: theme.cursorType,
[labelPosition === 'left' ? 'paddingRight' : 'paddingLeft']: theme.spacing.sm,
},

Expand Down

0 comments on commit dfaf1a2

Please sign in to comment.