Merge pull request #1256 from ONLYOFFICE/bugifx/Bug60425
Fix Bug 60425: user select
This commit is contained in:
commit
d29814abc4
@ -22,7 +22,12 @@ const PureText = ({ type, color, ...props }) => <Text {...props} />;
|
||||
const StyledText = styled(PureText)`
|
||||
text-decoration: ${(props) => props.theme.link.textDecoration};
|
||||
|
||||
${(props) => !props.enableUserSelect && NoUserSelect}
|
||||
${(props) =>
|
||||
props.enableUserSelect
|
||||
? css`
|
||||
user-select: text;
|
||||
`
|
||||
: NoUserSelect}
|
||||
|
||||
cursor: ${(props) => props.theme.link.cursor};
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user