-
-
Notifications
You must be signed in to change notification settings - Fork 502
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: Improved collaboration cursor UX #1374
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Cleaned up code - Added visibility dot to cursors - Added animations
label.classList.add("collaboration-cursor__label"); | ||
label.setAttribute("style", `background-color: ${user.color}`); | ||
label.insertBefore(document.createTextNode(user.name), null); | ||
cursorElement.addEventListener("mouseenter", () => { |
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.
is this needed or can we just use css :hover
?
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 think we still want it - GDocs behaviour still has a delay for hiding after moving the mouse off the cursor. We could have a CSS transition delay instead but it's added complexity in both cases so this is ok imo.
This PR improves the collaboration cursor UX so that the name tag no longer annoyingly blocks user text selection. The UX changes are summarized here: #1163 (comment).
Closes #1163