-
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 customizer block toolbar after popover refactor #41312
Conversation
Size Change: +24 B (0%) Total Size: 1.24 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.
packages/customize-widgets/src/components/sidebar-block-editor/style.scss
Show resolved
Hide resolved
@Mamaduka I've used a bit more generic selector to target all toolbar popovers and not just the "more menu" one. |
@youknowriad, the failing Playwright tests might be related to the changes in this PR. |
The 8a990c8 should fix failing tests. The Block Toolbar was overlapping with the inserter, making it impossible to click on the searched block. |
All checks are passing, so I'm going to merge this. @youknowriad, @kevin940726, I'm happy to do a follow-up if you've got a better alternative for 8a990c8. |
Thanks for the help @Mamaduka |
* Fix customizer block toolbar after popover refactor * Fix more popovers * Fix e2e test Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com>
closes #35496
What?
The block toolbar popover was being "cut" in the customizer sidebar (widgets). This PR fixes it.
How?
As recommended by floatingui, the Popover component now renders the "position" as inline style (after the refactor in #40740 ) which was overriding the "fixed" position override we had for block popover in the customizer. This PR just forces the fixed position in that case.
This should probably fixed the flaky e2e test we have right now.
Testing Instructions
1- Pick the 2019 theme
2- Go to the widgets sidebar in the customizer
3- Select blocks
4- the block toolbar should be shown entirely (not cut)