-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Customize Widgets: Fix block toolbar deselection when clicking scrollbar #32762
Conversation
packages/customize-widgets/src/components/customize-widgets/use-clear-selected-block.js
Show resolved
Hide resolved
Size Change: -1 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
@@ -16,11 +16,6 @@ | |||
transition: border-color 0.1s linear, box-shadow 0.1s linear; | |||
@include reduce-motion("transition"); | |||
|
|||
// Allow overflow on desktop. | |||
@include break-small() { | |||
overflow: inherit; |
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.
I wonder if this started causing issues because the component was nested under a different element. Strikes me that inherit
should probably be avoided in the root of react component styles, because it couples the component to its parent.
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.
Had to revert this as it causes lots of tests to fail, though I can't see why. I'm unable to reproduce the issues the tests are having.
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.
Thank you!
c3c4bb4
to
9593f6a
Compare
9593f6a
to
08e451b
Compare
…bar (#32762) * Remove overflow inherit style * Switch to using mousedown instead of focusin * Revert style change
…bar (#32762) * Remove overflow inherit style * Switch to using mousedown instead of focusin * Revert style change
Description
Fixes https://core.trac.wordpress.org/ticket/53400
With scrollbars set to show 'always' in Mac OS, trying to drag the scrollbar on the top block toolbar resulted in a block deselection.
This PR also fixes the vertical scrollbar that shows sometimes in the top toolbar mode
How has this been tested?
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).