Skip to content

Commit

Permalink
Fix multi-selected warning block highlight (#10818)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpayton authored Oct 24, 2018
1 parent 184b10c commit 8ee49d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@
left: -$block-padding;
}

// Avoid conflict with the multi-selection highlight color.
&.has-warning.is-multi-selected .editor-block-list__block-edit::after {
background-color: transparent;
}

&.has-warning.is-selected .editor-block-list__block-edit::after {
bottom: ( $block-toolbar-height - $block-padding - $border-width );

Expand Down
5 changes: 5 additions & 0 deletions packages/editor/src/components/warning/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
text-align: left;
padding: 20px;

// Avoid conflict with the multi-selection highlight color.
.has-warning.is-multi-selected & {
background-color: transparent;
}

.editor-warning__message {
line-height: $default-line-height;
font-family: $default-font;
Expand Down

0 comments on commit 8ee49d2

Please sign in to comment.