Skip to content

Clearer controls for copying and pasting styles #47164

@richtabor

Description

@richtabor

What problem does this address?

Now that we have the functionality in place for copying and pasting block styles, let's follow-up with some approaches for making the functionality more apparent. (Related: #45477 (comment))

In its current form, it is not clear that one can copy the current block's style. "Copy block" should continue to function as it does today, where it copies block and styles.

What is your proposed solution?

Here are some rough concepts based on the discussion on the original PR to get us moving.

Current:

Here's the current implementation for reference. The "Copy block" control functions as both copying the block as as whole, or styles, based on the paste follow-up action.

CleanShot 2023-01-14 at 19 35 48@2x

Suggestion 1:

Add a section within the popover, with Copy styles and Paste styles in it directly. It could go at the bottom of the popover instead.

CleanShot 2023-01-14 at 19 36 38@2x

Suggestion 2:

Add a popover interaction. If we did this, we can afford to have both copy and paste, for block (which is the entire block, as-is - including styles) or just styles.

CleanShot 2023-01-14 at 19 37 29@2x

Metadata

Metadata

Assignees

Labels

Needs DevReady for, and needs developer efforts[Feature] BlocksOverall functionality of blocks[Type] EnhancementA suggestion for improvement.

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions