-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove user-select:text #65662
Conversation
Size Change: +693 B (+0.04%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working great in my testing and fixes the issue.
@ellatrix looks like there are some failing e2e tests, not sure if it's related. WDYT? |
Wow this is an obscure bug. Great work on narrowing it down as it directly impacts on features such as Zoom Out and Edit modes. |
@youknowriad I knew that there was would be no functional regression, the question is if we're ok with the visual regression (I assume there is one if @jasmussen added it). |
Well, the question is if it reintroduces the visual artifacting that happens when you select across text blocks in Safari. If the same steps to reproduce the issue, that are outlined in #43313 still apply, then that is a problem, because it's going to be a terrible text editing experience. I can't test now, but one would hope that Safari has improved since then. |
I tested multi selection and I believe I don't see the issue, but you know sometimes I don't really understand what I need to test. |
Yep, seeing the same in my Safari test. Hopefully that means it's fixed. Worth trying, but let's keep an eye on selecting across blocks in Safari post-merge! |
d74be84
to
a3e80aa
Compare
a3e80aa
to
ea41fdd
Compare
It looks like "shift + arrow" is not working properly in this PR in Firefox, it doesn't cross the boundaries of the list block into a preceding paragraph block. |
@youknowriad @jasmussen the failures are caused by the disabling of text selection introduced in #58169. For some reason that's applied in the post editor too. Either we remove it or we need to find a class combo so that it's not applied in unwanted places. |
Tests should pass now hopefully. So only a few months ago I introduced these Firefox e2e tests. Really glad I did then, or we would have broken it now. |
Highly appreciated help in this PR Ella thanks a lot. |
Seems like it might not have solved all the "stealing focus" issues. |
Fix #65857 |
Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
Related #60021
What?
In trunk, if you have a container that is a stack or a grid block with a paragraph within it, it's very hard to select the container even if it has padding... The paragraph automatically steals focus.
It turns out that we had some CSS introduced a long time ago in #43313 to improve multi-selection styles in Safari that was responsible for this buggy behavior.
In my test, removing this CSS doesn't break the multi-selection, so this is probably not needed anymore.
Testing Instructions
1- Insert a stack block with some padding
2- Insert a paragraph within it
3- Unselect the blocks by clicking the title
4- Click the "padding" area
5- The stack should be selected and not the paragraph within it.