-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat(highlight): Change cursor when hovering over text #547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should reconsider our approach to keep things decoupled and reusable.
b4a631a
to
7767827
Compare
7767827
to
4d7ce98
Compare
4d7ce98
to
6932b9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just needs tests.
d6c0280
to
0b445d0
Compare
@@ -57,6 +65,18 @@ export default class DocumentAnnotator extends BaseAnnotator { | |||
return this.annotatedEl ? Array.from(this.annotatedEl.querySelectorAll('.page')) : []; | |||
} | |||
|
|||
handleChangeMode = ({ mode }: { mode: Mode }): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handleModeChange
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually followed the naming convention in BaseAnnotator
like handleSetVisible
and handleSetActive
Need to merge box/box-content-preview#1239 first