Skip to content

Commit 3c77f80

Browse files
ellatrixyouknowriadgetdavejasmussen
authored
Remove user-select:text (#65662)
Co-authored-by: ellatrix <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: getdave <[email protected]> Co-authored-by: jasmussen <[email protected]>
1 parent 20f35dd commit 3c77f80

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

packages/block-editor/src/components/block-list/content.scss

-10
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
9191
}
9292
}
9393

94-
// Ensure an accurate partial text selection.
95-
// To do this, we disable text selection on the main container, then re-enable it only on the
96-
// elements that actually get selected.
97-
// To keep in mind: user-select is currently inherited to all nodes inside.
98-
.has-multi-selection & {
99-
user-select: none;
100-
}
101-
10294
// Re-enable it on components inside.
10395
[class^="components-"] {
10496
user-select: text;
@@ -117,11 +109,9 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
117109
overflow-wrap: break-word;
118110

119111
pointer-events: auto;
120-
user-select: text;
121112

122113
&.is-editing-disabled {
123114
pointer-events: none;
124-
user-select: none;
125115
}
126116

127117
&.has-negative-margin {

packages/block-library/src/editor.scss

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
@import "./query-pagination-numbers/editor.scss";
5656
@import "./post-featured-image/editor.scss";
5757
@import "./post-comments-form/editor.scss";
58-
@import "./post-content/editor.scss";
5958
@import "./editor-elements.scss";
6059

6160
:root .editor-styles-wrapper {

packages/block-library/src/post-content/editor.scss

-4
This file was deleted.

0 commit comments

Comments
 (0)