Skip to content

Commit

Permalink
Fix regression with unclickable block warnings (#11768)
Browse files Browse the repository at this point in the history
* Fix regression with unclickable block warnings

Fixes #11764.

This PR makes the "Resolve" and "Convert to HTML" buttons clickable again.

* Add comments.
  • Loading branch information
jasmussen authored Nov 13, 2018
1 parent c206d07 commit 38001c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,16 @@

// Warnings
&.has-warning .editor-block-list__block-edit {
> :not(.editor-warning) {
// When a block has a warning, you shouldn't be able to manipulate the contents.
> * {
pointer-events: none;
user-select: none;
}

// Allow the warning action buttons to be manipulable.
.editor-warning {
pointer-events: all;
}
}

&.has-warning:not(.is-hovered) .editor-block-list__block-edit::before {
Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/components/warning/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

.editor-warning__action {
margin: 0 6px 0 0;
margin-left: 0;
}
}

Expand Down

0 comments on commit 38001c6

Please sign in to comment.