Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Allow annotation text to be selectable #719

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

tonyjin
Copy link
Contributor

@tonyjin tonyjin commented Mar 14, 2018

Old CSS was prevent user selection of anything that wasn't a text layer div to prevent weird selection edge cases. This patch relaxes that to allow selection of <span>, <p> & <input> so annotation dialog text can be selected (they use <p>).

@boxcla
Copy link

boxcla commented Mar 14, 2018

Verified that @tonyjin has signed the CLA. Thanks for the pull request!

@@ -79,6 +79,12 @@
}
}

// Allow other text to be selectable
p,
span {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add inputs too? Right now you can't highlight text that you're currently entering.

Old CSS was prevent user selection of anything that wasn't a text layer div to prevent weird selection edge cases. This patch relaxes that to allow selection of <span> and <p> so annotation dialog text can be selected (they use <p>).
@tonyjin tonyjin force-pushed the selectable-annotation-text branch from 61d4f3b to f79dea8 Compare March 15, 2018 00:22
@tonyjin tonyjin merged commit 929e5bf into box:master Mar 16, 2018
@tonyjin tonyjin deleted the selectable-annotation-text branch March 16, 2018 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants