-
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
Open Offcanvas List View appender popup within sidebar #45996
Comments
Research
gutenberg/packages/block-editor/src/components/inserter/index.js Lines 186 to 205 in 8e93b93
Challenges
|
Allowing the direct insertion of An alternative might be simply to allow the inserter to bring up the standard inserter menu pre-filtered to blocks that are allowed in the Nav block. Here's an example of that: Screen.Capture.on.2022-11-23.at.16-10-39.mp4It's not the best experience in terms of editing the details of a Custom Link. For that we'd need:
If that isn't tenable then the only alternative is to have the offcanvas render a Thoughts appreciated. |
The research and the demo are awesome @getdave 👍🏻 👍🏻 👍🏻 I think that
I think adding blocks in their not setup state is confusing and the next steps to set them up are not obvious.
|
Looking good @getdave ! Not much feedback to give. Couple of points: Dialog should be the same one we use for adding links on canvas. Is there a standard for how these dialog's should be positioned? I remember seeing a recent exploration that used a similar pattern (exposing advanced settings in inspector via dialog). For example in Figma it's always to the side of the inspector, overlapping slightly. |
👍 I expect that will be the tricky bit. I'm going to do more experimenting today.
The component relies on lower level |
@draganescu The issue is that the dialog shown when you add a new menu item in the canvas is a At first I thought I would just re-position the link UI from the block so it's over next to the offcanvas. However, we cannot do that because to get that UI to appear we need to select the block. That means the Inspector Controls update to reflect the I'm now going to experiment with rendering a separate Does that make sense? |
We discussed this away from Github. The current feeling is:
|
Absolutely @getdave, it's similar to me asking "Can we have a special LinkUI just for this off canvas use, for now?", so yes that sounds like a good plan. For now the off canvas editor component is both experimental and exclusive to the navigation block. As we're trying to validate the interaction first, and learn from that, it's OK if some items are copied over or if less than ideal couplings appear. For now :) |
Currently the popover for the appender in the offcanvas sidebar opens in the block canvas. Rather it should open relative to the sidebar itself.
This looks like a good first step. Ideally we'd open the appender in the sidebar, but we can do that in a followup.
Originally posted by @scruffian in #45947 (review)
The text was updated successfully, but these errors were encountered: