Skip to content

Commit

Permalink
Fade side inserter when typing is true. (#5566)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias authored Mar 12, 2018
1 parent 8d5345e commit 4e42aff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions editor/components/block-list/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ export class BlockListBlock extends Component {
'is-multi-selected': isMultiSelected,
'is-hovered': isHovered,
'is-reusable': isReusableBlock( blockType ),
'is-typing': isTypingWithinBlock,
} );

const { onReplace } = this.props;
Expand Down
11 changes: 11 additions & 0 deletions editor/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@
right: 6px;
}

&.is-typing .editor-block-list__empty-block-inserter,
&.is-typing .editor-block-list__side-inserter {
opacity: 0;
}

.editor-block-list__empty-block-inserter,
.editor-block-list__side-inserter {
opacity: 1;
transition: opacity 0.2s;
}

&.is-reusable.is-selected > .editor-block-mover:before {
border-right: none;
}
Expand Down

0 comments on commit 4e42aff

Please sign in to comment.