Skip to content

Commit

Permalink
Try :focus-within instead of is-typing
Browse files Browse the repository at this point in the history
  • Loading branch information
gwwar committed Jun 10, 2021
1 parent 7069153 commit b62f8b4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
}
}

.is-outline-mode:not(.is-typing) .block-editor-block-list__block {
.is-outline-mode .block-editor-block-list__block:not(:focus-within) {
&.is-hovered {
cursor: default;

Expand All @@ -286,12 +286,6 @@
bottom: $border-width;
border-radius: $radius-block-ui - $border-width; // Border is outset, so subtract the width to achieve correct radius.
}

&:focus {
&::after {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
}
}
}
}

Expand Down

0 comments on commit b62f8b4

Please sign in to comment.