-
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/54877: Allow insertion of Buttons in the Navigation Block #55126
Conversation
Why would you need to add a button to the navigation block in the first place? Just wondering. I forget, does it output an actual |
Just visuals, I guess. Like "Sign up now".
|
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.
Thank you for the PR. At first glance the motivation seems solid.
However, I know we need to be pretty careful with amending the values in this PR so leaving a blocking review until I have chance to review in greater depth.
I just wanted to add that #55144 has also been submitted, which takes a slightly different approach to this PR. |
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.
It is my opinion that if we want to add this feature then #55144 is the way to go.
Thank you for the PR but I think we should close it out 🙏
Closing as discussed. |
What?
In this PR, the
directInsert
prop is set tofalse
to enable insertion of other supported blocks.Why?
It is counter-intuitive to insert a custom link, and then transform it into a Button, instead of adding a Button just how one would using the default inserter. This fix reduces confusion and improves user experience.
How?
Testing Instructions
In
trunk
Screenshots or screencast
Screen.Recording.2023-10-06.at.6.37.55.PM.mov