Skip to content

Commit

Permalink
Remove obsolete hardcoded focus style from Social Links (#30721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Apr 13, 2021
1 parent 2d2bc88 commit 158b115
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/block-library/src/social-links/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,3 @@
.wp-social-link.wp-social-link__is-incomplete:focus {
opacity: 1;
}


// Focus styles for the button inside the child block.
// The child block itself has a more generic focus style, see line 55.
[data-type="core/social-links"] .wp-social-link:focus { // This needs specificity.
opacity: 1;
box-shadow: 0 0 0 2px $white, 0 0 0 4px var(--wp-admin-theme-color);

// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 2px solid transparent;
}

0 comments on commit 158b115

Please sign in to comment.