Skip to content

Commit 1e171f2

Browse files
committed
Add hover transparency effect to collaboration caret name bubbles
When hovering over a collaboration caret name bubble with the mouse, it now becomes highly transparent (20% opacity) to improve UX by allowing users to see through the label when it's covering content. Changes: - Changed pointer-events from none to auto to enable hover interactions - Added opacity: 0.2 on hover for the label bubble and tail (80% transparent) - Consolidated duplicate hover effects into single rule - Maintains existing hover transform and shadow effects - Added cursor: pointer to indicate interactivity
1 parent bfea008 commit 1e171f2

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/styles/simple-editor.scss

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@
432432
/* Smooth transitions */
433433
transition: all 0.2s ease;
434434
transform: translateY(-2px);
435-
435+
436436
/* CRITICAL: Prevent any animations or opacity changes */
437437
animation: none !important;
438438
opacity: 1 !important;
439-
439+
440440
/* Pointer tail */
441441
&::after {
442442
content: '';
@@ -448,13 +448,21 @@
448448
border-left: 6px solid transparent;
449449
border-right: 6px solid transparent;
450450
border-top: 6px solid var(--collaboration-user-color, #6366f1);
451+
transition: opacity 0.2s ease;
451452
}
452-
453-
/* Hover effect for better visibility */
453+
454+
/* Hover effect - make highly transparent with enhanced shadow */
454455
&:hover {
456+
opacity: 0.2 !important;
457+
cursor: pointer;
455458
transform: translateY(-4px);
456459
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
457460
}
461+
462+
/* Make tail transparent on hover too */
463+
&:hover::after {
464+
opacity: 0.2;
465+
}
458466

459467
/* Dark theme adjustments */
460468
.dark & {
@@ -490,7 +498,7 @@
490498

491499
.ProseMirror .collaboration-cursor__label {
492500
z-index: 100;
493-
pointer-events: none;
501+
pointer-events: auto; /* Allow hover interactions */
494502
}
495503

496504
/* Mobile responsiveness for collaboration carets */

0 commit comments

Comments
 (0)