Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove user-select:text #65662

Merged
merged 4 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading