Skip to content

Commit

Permalink
Site editor hover/select: Fix double focus style. (#45589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Nov 7, 2022
1 parent 41d5f4c commit 25aa4b4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,16 @@
cursor: unset;
}

box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); // Selected not focussed.
border-radius: $radius-block-ui;

&:focus {
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
&::after {
content: "";
position: absolute;
pointer-events: none;
top: $border-width;
left: $border-width;
right: $border-width;
bottom: $border-width;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
border-radius: $radius-block-ui;
}
}
}
Expand Down

0 comments on commit 25aa4b4

Please sign in to comment.