Skip to content

Commit

Permalink
Add focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed May 1, 2024
1 parent 4849638 commit 2894d79
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-library/src/social-link/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

// 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;
}
}

.wp-block-social-links.is-style-pill-shape .wp-social-link button {
Expand Down

0 comments on commit 2894d79

Please sign in to comment.