-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Block: add copy action #22214
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
Block: add copy action #22214
Conversation
|
Size Change: +102 B (0%) Total Size: 824 kB
ℹ️ View Unchanged
|
4d0f540 to
5af1538
Compare
mcsf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement.
|
Thanks! In order to add the shortcut, we'll need this: #22224 |
|
The button continues to say "Copied!" until you select a different block. That seems like a bug to me. Also, I think the "copied" message should use a snackbar notification instead of modifying the button text (which is bad for accessibility). But anyway, this is a nice feature to have. 👍 |
Description
Small quality of life improvement for touchscreen users or users who don't use keyboard shortcuts. This PR adds a button to the collapsed block actions (next to duplicate etc.) to copy the selected block(s). Quite similar to the "Copy all blocks", but then for the selected block.
I think it could be useful to add the shortcut in the block menu, but I'm planning to refactor ClipboardButton first because that component cannot be used for any button component. So I'll add it in a follow up, but I think this by itself is already useful.
How has this been tested?
Screenshots
Types of changes
Checklist: