-
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
Popover: polish component after recent refactor #42770
Comments
Hey! I imagine it's probably related to what I'm facing with the Popover arrow. Using WP 6.0 with Gutenberg plugin deactivated (working): With Gutenberg ( |
Hey @renatho , it could be related — could you open a separate issue for this regression (where you can add more details and we can discuss further), so that we keep this issue as a master tracking issue? Thank you! |
Sure! Here is the issue: #42820 |
I've added #42725 to the list. Hope that's ok! |
Of course it is, thank you! I must flag that I currently don't really have the capacity to work on this. I can try to squeeze some time and help, but we definitely need to understand who is going to work on these fixes |
I think I know what's happening here. There's no 'resize' listener for The bug seems to specifically happen when inserting a new block and closing the sidebar, and I think that happens because the inserted block's toolbar is newly mounted, and a fresh I can work on a fix for this (edit: fix in #43172). Interestingly, I also just noticed this in the floating-ui docs: It suggests that any variable accessed through a closure by middleware functions needs to be a ref. That would also apply to |
There are a couple of other issues here in the widgets customizer - Popover component overlay not fully visible in Customizer |
The recent refactor of the Popover component to use
floating ui
has caused a few regressions, and still feels partially incomplete.Known regressions (either issues, or PRs containing a fix):
CustomGradientPicker
:ColorPicker
popover is glitchy (size and position) #41353expandOnMobile
styling is broken #42631Improvements wish list:
anchor
, we should settle on a few, refactor all components and mark the other legacy approaches as deprecatedanchor
prop #43691position
prop:position
toplacement
conversions, add unit tests #44339position
prop to theplacement
prop #44401onClose
-like callbacks and unify them to just one callback (link)Popover
using CSS margins and try to refactor them to use theoffset
prop instead__unstable
props:__unstableObserveElement
(included in Popover: enable auto-updating every animation frame #43617)__unstableSlotName
variant
prop and refactor popovers to use it, deprecateisAlternate
#45137 (see convo)position: fixed
. (see Fix popover stacking in the customize widgets editor #44282 for context)The text was updated successfully, but these errors were encountered: