Skip to content

Commit bbae9fa

Browse files
committed
Update visualizer to only display on hover
1 parent 774fd38 commit bbae9fa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/block-editor/src/hooks/position.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ export function PositionPanel( props ) {
386386
onChange={ ( { selectedItem } ) => {
387387
onChangeType( selectedItem.value );
388388
} }
389-
onFocus={ onMouseOverPosition }
390-
onBlur={ onMouseLeavePosition }
389+
onMouseOver={ onMouseOverPosition }
390+
onMouseOut={ onMouseLeavePosition }
391391
size={ '__unstable-large' }
392392
/>
393393
</BaseControl>

packages/block-editor/src/hooks/position.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
left: 0;
3737
right: 0;
3838
opacity: 0.5;
39-
border-color: var(--wp-admin-theme-color);
40-
border-style: dotted;
39+
background-color: var(--wp-admin-theme-color);
4140
box-sizing: border-box;
4241
overflow: hidden;
4342
}

0 commit comments

Comments
 (0)