-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Navigation Block: Buttons Block can't be inserted from the "Add Link" modal #54877
Comments
Confirmed in testing with the most recent beta - there's no option to insert a button from the inline inserter |
It's correct that the button block isn't available via the Inserter! The button can be successfully added to the Navigation menu via the Sidebar in the Site Editor. button.in.header.navigation.mp4 |
After I added a button to the navigation, the button would also be available in the inserter in the canvas. Definitely a bug. :-) Thanks for reporting. @liviopv |
@torounit or @scruffian since you two worked on this, might one of you be able to dig in to get this into the 6.4 release cycle? Right now, the option is quite hidden and hard to get to making for a subpar user experience. |
Hello everyone 👋 I have raised a PR for this issue and would love your thoughts on the same - PR #55126 |
Fixed this issue in #55144 Add Buttons to Transfrom as well as Search/Social/Logo/Page List. |
@torounit Just saw your PR. Since the featured block has limited options, for example it doesn't have the Submenu block, in this case what is the general approach to add the Submenu after a custom link? Is transforming a custom link to Submenu block the only option the user has? |
@Sidsector9 And I think it is a confusing behavior to add elements in different ways depending on the type of InnerBlock block. I think these problems should be solved by other issue or pull request. |
For context, the reason for this conditional behaviour is to try and keep the block simple for the most common use case which us just inserting a link to a Page. Therefore, if your Navigation contains only "simple" blocks (links and some other whitelisted blocks) then when you click the + inserter it will auto-insert a link into the Navigation. Whereas if you Navigation already contains more complex blocks then when you click As @richtabor mentioned, we are looking at improving this flow by changing the behaviour of the |
Noting that this should ease the experience greatly and close this issue out: #57756 |
We need more eyes on this change though. |
What problem does this address?
I'm not sure if this is intentional, but when testing the new support for the Buttons Block in Navigation, I noticed that there is no way of adding a Button by clicking on the [+] button that shows up inline in the Navigation Block and pulls up the option to search for links or add Search/Social/Logo/Page List.
Clicking on an empty "Custom Link" menu item also doesn't allow you to select a button block. The only way of adding a Button seems to be from the menu editing tag in the Block Inspector sidebar:
CleanShot.2023-09-27.at.15.56.07.video-converter.com.mp4
What is your proposed solution?
Buttons should be treated like other blocks allowed in the Navigation Block, meaning they should show up in the Transform options, and should show up when searching for button/s.
The text was updated successfully, but these errors were encountered: