Skip to content

Commit e527783

Browse files
authored
fix: scope cursor caret CSS to be more specific (#1492)
1 parent fe96745 commit e527783

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/core/src/editor/editor.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ Tippy popups that are appended to document.body directly
8686
opacity: 0.001;
8787
}
8888

89-
.collaboration-cursor__base {
89+
.bn-editor .collaboration-cursor__base {
9090
position: relative;
9191
}
9292

93-
.collaboration-cursor__caret {
93+
.bn-editor .collaboration-cursor__base .collaboration-cursor__caret {
9494
position: absolute;
9595
width: 2px;
9696
top: 1px;
9797
bottom: -2px;
9898
left: -1px;
9999
}
100100

101-
.collaboration-cursor__label {
101+
.bn-editor .collaboration-cursor__base .collaboration-cursor__label {
102102
pointer-events: none;
103103
border-radius: 0 1.5px 1.5px 0;
104104
font-size: 12px;
@@ -119,7 +119,9 @@ Tippy popups that are appended to document.body directly
119119
transition: all 0.2s;
120120
}
121121

122-
.collaboration-cursor__base[data-active] .collaboration-cursor__label {
122+
.bn-editor
123+
.collaboration-cursor__base[data-active]
124+
.collaboration-cursor__label {
123125
color: #0d0d0d;
124126
max-height: 1.1rem;
125127
max-width: 20rem;

0 commit comments

Comments
 (0)