Skip to content

Commit

Permalink
Alter the sibling inserter animation timing, and add a line to make t…
Browse files Browse the repository at this point in the history
…he inserter more discoverable. This is for testing a concept introduced in #22801
  • Loading branch information
apeatling committed Jun 1, 2020
1 parent 78587c9 commit 5a2ee73
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@
justify-content: center;

// Clicks on the inserter are redirected to the nearest tabbable element.
cursor: text;
//cursor: text;
cursor: default;

// Hide the inserter above the selected block.
&.is-inserter-hidden .block-editor-inserter__toggle {
Expand Down Expand Up @@ -369,6 +370,7 @@
border-radius: $radius-block-ui;
color: $white;
padding: 0;
outline: 10px solid $white;

// Special dimensions for this button.
min-width: 24px;
Expand All @@ -385,7 +387,7 @@
.block-editor-block-list__block-popover-inserter {
.block-editor-inserter__toggle.components-button {
// Fade it in after a delay.
animation: block-editor-inserter__toggle__fade-in-animation-delayed 1.2s ease;
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.6s ease;
animation-fill-mode: forwards;
@include reduce-motion("animation");
}
Expand Down Expand Up @@ -558,6 +560,11 @@
box-shadow: none;
overflow-y: visible;
margin-left: 0;

border-top: 2px solid $light-gray-secondary;
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.6s ease;
animation-fill-mode: forwards;
@include reduce-motion("animation");
}
}

Expand Down

0 comments on commit 5a2ee73

Please sign in to comment.