Skip to content

Commit

Permalink
On dragging, set block opacity to 0.7
Browse files Browse the repository at this point in the history
We no longer have a dedicated and invisible div for the drag handle
that we show on dragging and acts as a grey box on top of the block
being dragged.
  • Loading branch information
oandregal committed Sep 3, 2018
1 parent f899222 commit a4a8f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/components/block-list/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class BlockListBlock extends Component {
'is-selected-parent': shouldAppearSelectedParent,
'is-hovered': shouldAppearHovered,
'is-reusable': isReusableBlock( blockType ),
'is-hidden': dragging,
'is-dragging': dragging,
'is-typing': isTypingWithinBlock,
'is-focused': isFocusMode && ( isSelected || isParentOfSelectedBlock ),
'is-focus-mode': isFocusMode,
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
}

.editor-block-list__block {
&.is-hidden *,
&.is-hidden > * {
visibility: hidden;
&.is-dragging *,
&.is-dragging > * {
opacity: 0.7;
}

.editor-block-list__block-edit .reusable-block-edit-panel * {
Expand Down

0 comments on commit a4a8f09

Please sign in to comment.