Skip to content

Commit

Permalink
Remove user-select:text (WordPress#65662)
Browse files Browse the repository at this point in the history
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
5 people authored and karthick-murugan committed Nov 13, 2024
1 parent b57b137 commit 43f398c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions packages/block-editor/src/components/block-list/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
}
}

// Ensure an accurate partial text selection.
// To do this, we disable text selection on the main container, then re-enable it only on the
// elements that actually get selected.
// To keep in mind: user-select is currently inherited to all nodes inside.
.has-multi-selection & {
user-select: none;
}

// Re-enable it on components inside.
[class^="components-"] {
user-select: text;
Expand All @@ -117,11 +109,9 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
overflow-wrap: break-word;

pointer-events: auto;
user-select: text;

&.is-editing-disabled {
pointer-events: none;
user-select: none;
}

&.has-negative-margin {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
@import "./query-pagination-numbers/editor.scss";
@import "./post-featured-image/editor.scss";
@import "./post-comments-form/editor.scss";
@import "./post-content/editor.scss";
@import "./editor-elements.scss";

:root .editor-styles-wrapper {
Expand Down
4 changes: 0 additions & 4 deletions packages/block-library/src/post-content/editor.scss

This file was deleted.

0 comments on commit 43f398c

Please sign in to comment.