Skip to content

Commit

Permalink
Update visualizer to only display on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed May 26, 2023
1 parent 774fd38 commit bbae9fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ export function PositionPanel( props ) {
onChange={ ( { selectedItem } ) => {
onChangeType( selectedItem.value );
} }
onFocus={ onMouseOverPosition }
onBlur={ onMouseLeavePosition }
onMouseOver={ onMouseOverPosition }
onMouseOut={ onMouseLeavePosition }
size={ '__unstable-large' }
/>
</BaseControl>
Expand Down
3 changes: 1 addition & 2 deletions packages/block-editor/src/hooks/position.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
left: 0;
right: 0;
opacity: 0.5;
border-color: var(--wp-admin-theme-color);
border-style: dotted;
background-color: var(--wp-admin-theme-color);
box-sizing: border-box;
overflow: hidden;
}

0 comments on commit bbae9fa

Please sign in to comment.