diff --git a/packages/client/src/tiptap/styles/selection.scss b/packages/client/src/tiptap/styles/selection.scss index 045f9a0b..7868f3cd 100644 --- a/packages/client/src/tiptap/styles/selection.scss +++ b/packages/client/src/tiptap/styles/selection.scss @@ -71,6 +71,12 @@ } &.selected-node { + &:not(.has-focus) { + ::selection { + background-color: transparent; + } + } + .render-wrapper { position: relative; border: 1px solid var(--node-selected-border-color) !important; @@ -89,12 +95,6 @@ } } } - - &:not(.has-focus) { - ::selection { - background-color: transparent; - } - } } .node-image { @@ -114,6 +114,12 @@ } &.selected-node { + &:not(.has-focus) { + ::selection { + background-color: transparent; + } + } + .render-wrapper { position: relative; @@ -128,11 +134,5 @@ } } } - - &:not(.has-focus) { - ::selection { - background-color: transparent; - } - } } }