Skip to content

Commit

Permalink
Fix issue where black rectangle would briefly blink on new paragraphs
Browse files Browse the repository at this point in the history
In master, if you press enter a lot and type a lot, a black rectangle sometimes briefly appears. This is the isEditing rectangle we use to indicate where the cursor is, if it's not in text, i.e. if you have a placeholder selected.

This PR adds a teensy delay to this so it shouldn't show up.
  • Loading branch information
Joen Asmussen committed Jan 5, 2018
1 parent 9fd2aa8 commit d129a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/edit-post/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
// like for example an image block that receives arrowkey focus.
.editor-visual-editor .editor-block-list__block:not( .is-selected ) .editor-block-list__block-edit {
box-shadow: 0 0 0 0 $white, 0 0 0 0 $dark-gray-900;
transition: .1s box-shadow;
transition: .1s box-shadow .05s;

&:focus {
box-shadow: 0 0 0 1px $white, 0 0 0 3px $dark-gray-900;
Expand Down

0 comments on commit d129a6c

Please sign in to comment.