-
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
Add reusable BlockPopover and BlockPopoverInbetween components, remove default block appender button for empty paragraphs #40441
Conversation
Size Change: -161 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
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.
We have some failing e2e tests, they are related to toolbar and inserter:
specs/editor/various/inserting-blocks.test.js
specs/editor/various/toolbar-roving-tabindex.test.js
So I think they are relevant and not something intermittent. Probably the tests just require some selector updates?
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.
Awesome PR, another great simplification of the logic we had around the codebase. Everything worked well on my tests.
Looks like something became more "async" with this PR as I'm seeing this failures that get solved in non headless mode or if I add "wait" calls. I'm not sure where though as I kept the logic the same 🤔 |
457e8ed
to
7534904
Compare
Extracted from #40376
What?
This is a refactor PR. It extracts two generic popover components that allows us to add UI to the block editor that is contextual to given blocks.
Why?
Right now these components are used to display the block toolbar and the in-between inserter. They'll be used for more in #40376
We can also potentially leverage them for more (thinking about the BoxVisualizer for instance here)
Notes
Testing Instructions
There should be no behavior/visual change aside the removal of the side inserter in paragraph blocks. So check block toolbars, block inserters, in between inserters.