Skip to content

Commit

Permalink
Fix 5919 in an alternate way
Browse files Browse the repository at this point in the history
In PR #6090 (much appreciated), #5919 was fixed. However this particular fix introduced a regression where the side plus was now visible right at the start, which it wasn't in 2.7.

This PR takes a different approach, fixing the same issue but without the regression.
  • Loading branch information
Joen Asmussen committed May 1, 2018
1 parent 7ec3f8a commit 0d3214e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions editor/components/default-block-appender/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,30 @@ $empty-paragraph-height: $text-editor-font-size * 4;
}

// Show quick insertion icons faded until hover
.editor-inserter-with-shortcuts,
.editor-inserter {
.editor-inserter-with-shortcuts {
.components-icon-button {
color: $light-gray-700;
transition: color 0.2s;
}
}

// Don't show inserter until mousing
.editor-inserter__toggle:not( [aria-expanded="true"] ) {
opacity: 0;
}

&:hover {
.editor-inserter-with-shortcuts,
.editor-inserter {
.editor-inserter-with-shortcuts {
opacity: 1;

.components-icon-button {
color: $dark-gray-500;
}
}

.editor-inserter__toggle {
opacity: 1;
}
}

// Dropzone
Expand Down

0 comments on commit 0d3214e

Please sign in to comment.