-
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
Fix widget editor block toolbar scrolling behavior #32177
Conversation
@@ -1,6 +1,7 @@ | |||
.edit-widgets-block-editor { | |||
position: relative; | |||
background: $gray-100; | |||
padding: 0; |
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.
Ensures the top toolbar and notices have no gap above them.
Size Change: +4 B (0%) Total Size: 1.86 MB
ℹ️ View Unchanged
|
</ObserveTyping> | ||
</WritingFlow> | ||
</BlockSelectionClearer> | ||
<BlockTools> |
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.
BlockTools should be wrapped around the editor canvas (.editor-styles-wrapper
). It should not be part of the canvas.
</WritingFlow> | ||
</BlockSelectionClearer> | ||
<BlockTools> | ||
<Notices /> |
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.
Similarly, notices should not be part of the editor canvas.
The issue will be fixed by #32212 |
Description
Related #32178
Fixes an issue where the block toolbar doesn't stay anchored to the block in the customize widget editor. For some reason,
BlockTools
is very particular about where it should be rendered, it seems to need to be in the editor styles wrapper.This seems to be an issue with
BlockTools
across multiple editors (Widget, Navigation, Storybook Playground), but is most obvious in the standalone widget editor (also the most important place to fix).How has this been tested?
wp.data.dispatch( 'core/notices' ).createInfoNotice( 'hello' );
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).