-
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
Make the inserter in the site editor behave as a popover #27502
Conversation
@@ -0,0 +1,57 @@ | |||
/** |
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.
This file is duplicated between edit-post and edit-site. Separately, I'd like to factorize that and transform it to a React hook in @wordpress/compose
if possible.
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.
That sounds a good idea 👍
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.
Actually it's used in edit-widgets
as well, so it's triplicate.
I haven't had a chance to follow too deeply with the discussions here, so I only vaguely recall a conversation about this behavior on another ticket, which of course I can't find. I CC'ed a couple of people in case they have context for whether this was intentional or not. |
Size Change: +335 B (0%) Total Size: 1.19 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.
Tested and works well! Depending on the priority of this to land you can try to make the hook to be reused or in a follow up. 👍
ccd4848
to
bba31d3
Compare
bba31d3
to
745f3ac
Compare
This matches the behavior of the inserter in the post editor and fixes some a11y issues for the inserter (constrained tabbing, closes when the focus is outside...)