-
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
Block Inserter: Correctly apply style to the default inserter #47166
Conversation
Size Change: +13 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
@@ -59,7 +59,6 @@ | |||
|
|||
// Sibling inserter / "inbetweenserter". | |||
.block-editor-block-list__empty-block-inserter, | |||
.block-editor-default-block-appender, |
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 think the default inserter will not be used outside of the iframe editor, so I removed it.
Flaky tests detected in 09812c4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3921844822
|
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.
LGTM, thanks!
Related:
useBlockPreview
styles in iframe #47110What?
This PR fixes two problems with the default block inserter style not being applied in the block theme and site editor.
1.Nested block inserter is not square:
Why?
In #44298, the styles loaded into the iframe editor instance were separated. The default inserter (
.block-editor-default-block-appender
) is loaded in the iframe, so it must be defined incontent.css
, notstyle.css
.The Classic theme does not have this problem because the iframe editor is not used and both stylesheets are loaded:
How?
Moved styles related to default inserters from
style.css
tocontent.css
.Testing Instructions
I think we need to check all the inserters below, both block and classic themes, just to be sure.