Skip to content

Commit

Permalink
Use default cursor for non-editable text blocks (#40785)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored May 4, 2022
1 parent fa456ec commit d5b0656
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,17 @@
right: $border-width;
bottom: $border-width;
box-shadow: 0 0 0 $border-width var(--wp-admin-theme-color);
border-radius: $radius-block-ui - $border-width; // Border is outset, so subtract the width to achieve correct radius.
// Border is outset, so subtract the width to achieve correct radius.
border-radius: $radius-block-ui - $border-width;
}
}

&.is-selected {
cursor: unset;
cursor: default;

&.rich-text {
cursor: unset;
}

&::after {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); // Selected not focussed.
Expand Down

0 comments on commit d5b0656

Please sign in to comment.