Skip to content

Commit 7639deb

Browse files
authored
Merge pull request #4696 from GeekyAnts/fix/text-selection-button
fix: added a new prop to disable text selection
2 parents c3ce861 + bd260a9 commit 7639deb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/theme/components/button.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const baseStyle = (props: any) => {
2626
cursor: 'not-allowed',
2727
},
2828
cursor: 'pointer',
29+
userSelect: 'none',
2930
},
3031
_text: {
3132
fontWeight: 'medium',

src/theme/styled-system.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ const extraProps = {
571571
},
572572
cursor: true,
573573
overflow: true,
574+
userSelect: { property: 'userSelect' },
574575
} as const;
575576

576577
export const propConfig = {

0 commit comments

Comments
 (0)