-
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
Site Editor: Fix resizable box scrollbars in blocks #38123
Conversation
Size Change: +7 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Oops, I tested in several scenarios trying to make sure it's solid, but apparently not enough times 😞 . Thank you for spotting this! I'll give it a try later. |
@kevin940726, it's impossible to catch this bug when the plugin is activated, so no worries 👍 |
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.
Code looks good to me!
Just to make sure, pinging some folks who were able to reproduce the issue. Hey @annezazu @chthonic-ds @walbo, can you test that this PR resolves the issue? |
Can confirm it fixes it for me too! Thanks for getting a PR in place so promptly. |
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.
Folks reporting the issue confirm the issue is resolved with this fix. LGTM 👍
* Site Editor: Fix resizable box scrollbars in blocks * No need to traget direct children
Description
Fixes #38086.
It looks like the
.components-resizable-box__container
styles introduced in #38019 were leaking inside the iframe when the WP core loads concatenated CSS files usingload-styles.php.
It causes allResizableBox
on canvas to have scrollbars.RR fixes this issue by increasing the specificity of the new styles and only targeting direct children of
.edit-site-visual-editor.
How has this been tested?
Unfortunately, plugin CSS assets aren't loaded via
load-styles.php
, so it's hard to test this fix. So instead, test that this doesn't introduce regression to the #38019.Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).