-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link Control: Fix search result focus state border #22553
Conversation
…, avoiding a display bug with the search results.
Size Change: +108 B (0%) Total Size: 1.12 MB
ℹ️ View Unchanged
|
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the original rule defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
box-shadow: 0 0 0 $border-width-focus $theme-color; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it also be inset
there?
Currently, the
:focus
state for the search results when adding a link show's a border that is cut off:To fix this, I overrode the default
:focus
styling for the button component to use aninset
box-shadow: