-
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
Considering adding button links add from toolbar #6107
Comments
We went this way because 1) the link applies to the whole block, it's not an inline link and 2) it's often the primary functionality of the Button block, not a secondary/formatting action. |
@karmatosed It should be noted that if the Cover Image block is changed to use nested blocks (like what is being done for quotes in #6054), the UI for adding links will likely change as it would probably just be using a nested Heading block by default. EDIT: I just realized there was a pull request for changing the Cover Image block to use nested blocks: #5452. |
The general intent behind this ticket seems right — let's simplify the ways a user can insert links, so they don't have to learn how to do it three ways:
Select text to make into a link obviously has to stay. In the case of both the Button block, and the Image block, these are sort of "atomic units" — there is no nested content in either of those, and there likely never will be. When made into links, they are both links at the block level, i.e. the entire thing is clickable. Perhaps we unify those two? Perhaps we ditch the inline link style for the Button block, and add a block-level linking button to the block toolbar instead? On the other hand, it's common enough to not link an image, whereas a button is almost useless without a link, so it's good to pop it out inline, to make it super obvious. |
I think it's probably best to make a new issue (I'll do just that later) and work out a way to progress and unify. I'll loop back here once have, I feel this should pan out to all and we need to access how all links work then come up with a plan. |
Closing in favour of #6392 |
We should consider unifying the adding of links to things like buttons with the new link interface.
Why don't we just have the link added from the toolbar?
The text was updated successfully, but these errors were encountered: