Skip to content
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

WIP: Show sibling inserter on hover #24372

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
all in
  • Loading branch information
kirilzh committed Aug 5, 2020
commit 87d26d7b0dbe5b19456cb83135ca896e5a8a5966
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export default function InsertionPoint( { children, containerRef } ) {

// when there is no match return
if ( index === -1 ) {
setInserterClientId( [] );
setIsInserterShown( false );
return;
}
Expand Down Expand Up @@ -202,7 +201,9 @@ export default function InsertionPoint( { children, containerRef } ) {
showInsertionPoint={ isInserterVisible }
/>
) }
<div onMouseMove={ onMouseMove }> { children } </div>
<div onMouseMove={ ! isInserterForced ? onMouseMove : undefined }>
{ children }
</div>
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@
}
}


.block-editor-block-list__insertion-point-inserter,
.block-editor-block-list__block-popover-inserter {
.block-editor-inserter__toggle.components-button {
Expand All @@ -439,6 +438,13 @@
}
}

.block-editor-block-list__insertion-point-indicator {
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease;
animation-fill-mode: forwards;
@include reduce-motion("animation");
}


@keyframes block-editor-inserter__toggle__fade-in-animation-delayed {
0% {
opacity: 0;
Expand Down