diff --git a/editor/components/block-mover/index.js b/editor/components/block-mover/index.js index 9c2d8964f41e7..3110a34ef0e73 100644 --- a/editor/components/block-mover/index.js +++ b/editor/components/block-mover/index.js @@ -34,7 +34,7 @@ export function BlockMover( { onMoveUp, onMoveDown, isFirst, isLast, uids, block } tooltip={ __( 'Move Up' ) } label={ getBlockMoverLabel( uids.length, @@ -49,7 +49,7 @@ export function BlockMover( { onMoveUp, onMoveDown, isFirst, isLast, uids, block } tooltip={ __( 'Move Down' ) } label={ getBlockMoverLabel( uids.length, diff --git a/editor/components/block-mover/style.scss b/editor/components/block-mover/style.scss index 964b96d7bc6c0..e7c001ae04a9e 100644 --- a/editor/components/block-mover/style.scss +++ b/editor/components/block-mover/style.scss @@ -20,15 +20,30 @@ margin-bottom: 4px; } - &:not(:disabled):hover { + // unstyle inherited icon button styles + &:not(:disabled):hover, + &:not(:disabled):active, + &:not(:disabled):focus { + box-shadow: none; + color: inherit; + } + + // apply styles to SVG directly + svg { + display: block; + position: relative; // Fixing the Safari bug for `