Skip to content
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

Closed
karmatosed opened this issue Apr 10, 2018 · 6 comments
Closed

Considering adding button links add from toolbar #6107

karmatosed opened this issue Apr 10, 2018 · 6 comments
Labels
Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@karmatosed
Copy link
Member

karmatosed commented Apr 10, 2018

We should consider unifying the adding of links to things like buttons with the new link interface.

buttonlink-interface

Why don't we just have the link added from the toolbar?

@karmatosed karmatosed added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. labels Apr 10, 2018
@mtias
Copy link
Member

mtias commented Apr 10, 2018

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 karmatosed changed the title Make button links add from toolbar Considering adding button links add from toolbar Apr 10, 2018
@karmatosed
Copy link
Member Author

I think in this case there is an argument to unify. With cover image having the same link interface, having another that does add a link is to me a good reason to consider.

2018-04-10 at 20 55

@ZebulanStanphill
Copy link
Member

ZebulanStanphill commented Apr 10, 2018

@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.

@jasmussen
Copy link
Contributor

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, make into a link
  • click link button in block toolbar on image block to make entire image into a link
  • paste link below button

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.

@karmatosed
Copy link
Member Author

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.

@karmatosed
Copy link
Member Author

Closing in favour of #6392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants