gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Social links variation transforms

Open JosVelasco opened this issue 3 years ago • 2 comments

What problem does this address?

It is possible to duplicate a social link block from the icon toolbar or use keyboard shortcuts. Still, it cannot be transformed into another social icon variation. This would be handy for quickly inserting icons or updating them when necessary.

What is your proposed solution?

Clicking the block icon would open the sibling inserter pop-up, as suggested in this comment to transform it to another block variation.

There is already work here, but the blocks list is extensive. The sibling inserter would work better.

JosVelasco avatar Dec 22 '22 03:12 JosVelasco

Changing all the old twitter icons to new ones for a client's website right now and really wish this was possible. Since https://github.com/WordPress/gutenberg/pull/50139 is merged now, does that mean we could implement this easily? I will try to work up the code to do so in the next days.

krokodok avatar Dec 07 '23 16:12 krokodok

I opened a PR for that: https://github.com/WordPress/gutenberg/pull/56900

krokodok avatar Dec 08 '23 10:12 krokodok