From 2102f7ab34c8697a8273d38b3dfde9e4229b3908 Mon Sep 17 00:00:00 2001 From: Shaun Andrews Date: Fri, 22 May 2020 15:21:57 -0400 Subject: [PATCH] Override the default button :focus style to make the box-shadow inset, avoiding a display bug with the search results. (#22553) --- packages/block-editor/src/components/link-control/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index 6759385d0fe387..d3b2ecdfc64e04 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -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;