Skip to content

Commit

Permalink
Reduce block highlight time.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed May 12, 2020
1 parent c38113c commit f0a8693
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/block-editor/src/components/copy-handler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useFlashBlock() {
toggleBlockHighlight( clientId, true );
const timeout = setTimeout( () => {
toggleBlockHighlight( clientId, false );
}, 1000 );
}, 150 );
timeouts.current.push( timeout );
},
[ toggleBlockHighlight ]
Expand Down Expand Up @@ -55,12 +55,12 @@ function useNotifyCopy() {
eventType === 'copy'
? sprintf(
// Translators: Name of the block being copied, e.g. "Paragraph"
__( 'Copied block "%s" to clipboard.' ),
__( 'Copied "%s" to clipboard.' ),
title
)
: sprintf(
// Translators: Name of the block being cut, e.g. "Paragraph"
__( 'Cut block "%s" to clipboard.' ),
__( 'Moved "%s" to clipboard.' ),
title
);
} else {
Expand All @@ -73,7 +73,7 @@ function useNotifyCopy() {
)
: sprintf(
// Translators: Number of blocks being cut
__( 'Cut %d blocks to clipboard.' ),
__( 'Moved %d blocks to clipboard.' ),
selectedBlockClientIds.length
);
}
Expand Down

0 comments on commit f0a8693

Please sign in to comment.