Skip to content

Commit

Permalink
Override the default button :focus style to make the box-shadow inset…
Browse files Browse the repository at this point in the history
…, avoiding a display bug with the search results. (#22553)
  • Loading branch information
shaunandrews authored May 22, 2020
1 parent a6b89aa commit 2102f7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ $block-editor-link-control-number-of-actions: 1;
background-color: $light-gray-300;
}

// The added specificity is needed to override.
&:focus:not(:disabled) {
box-shadow: 0 0 0 $border-width-focus $theme-color inset;
}

&.is-selected {
background: $light-gray-200;

Expand Down

0 comments on commit 2102f7a

Please sign in to comment.