From f849fcbe52ef7b9e7ae003fee173450fc4c80b3c Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Fri, 30 Aug 2024 13:39:10 -0500 Subject: [PATCH] Remove unnecessary css for social icon button focus to make it consistent with other focus styles --- packages/block-library/src/social-link/editor.scss | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/block-library/src/social-link/editor.scss b/packages/block-library/src/social-link/editor.scss index 172e658505954..2f5714f5d2ed9 100644 --- a/packages/block-library/src/social-link/editor.scss +++ b/packages/block-library/src/social-link/editor.scss @@ -21,15 +21,6 @@ // This rule is duplicated from the style.scss and needs to be the same as there. padding: 0.25em; - // Focus styles replicate the `@wordpress/components` button component. - &:focus:not(:disabled) { - border-radius: 2px; - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); - - // Windows High Contrast mode will show this outline, but not the box-shadow. - outline: 3px solid transparent; - } - // Override the shared `.wp-block-social-link` class used on both the li and button // due to backwards compatibility from moving the blockProps from the li to the button. &:hover {