Gutenberg: Enable opening links in new tab for Button block

Created on 20 Sep 2018  路  5Comments  路  Source: WordPress/gutenberg

Is your feature request related to a problem? Please describe.
It would be awesome to add option to open links in new tab for the core/button component. I see some work for the core/image component in this PR. But it would be awesome to add that functionality to the core/button component as well.

Describe the solution you'd like
A good solution is to add the option to open links in new tab in the <InspectorControls /> so it shows up in the block settings sidebar.

Describe alternatives you've considered
An alternative I've thought about is creating a custom component that behaves like core/button but our own. This is not a good solution, it's best to add this most-commonly required functionality to the existing component in Gutenberg.

[Feature] Blocks [Status] Duplicate [Type] Enhancement

Most helpful comment

@mvpspl619 no problem, there are so many issues that it's hard to keep track of them all and find them even!

All 5 comments

Hi @mvpspl619 鈥斅營 hope it's okay but I edited your issue title to make it clear that you mean the button _block_. We also have a button component that we use for buttons in the Gutenberg user interface, but it's separate and mostly unrelated.

Thanks for the suggestion, and I agree it'd be great to see.

This looks like it's most likely a duplicate of #8000, #8550, and #8829

yes, Duplicate of #8000

@youknowriad @LakenH Sorry about the duplicate. Thank you for cleaning this up.

@mvpspl619 no problem, there are so many issues that it's hard to keep track of them all and find them even!

Was this page helpful?
0 / 5 - 0 ratings