Merge pull request #1256 from ONLYOFFICE/bugifx/Bug60425

Fix Bug 60425: user select
This commit is contained in:
Alexey Safronov 2023-03-01 16:17:56 +04:00 committed by GitHub
commit d29814abc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);